home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / net / vms.tar < prev    next >
Mailbox/MIME Entity  |  1986-09-08  |  49.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From ramin@rtgvax.UUCP Sat Sep 6 19:18:04 1986", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime application/mbox default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 72 61 6d | 69 6e 40 72 74 67 76 61 |From ram|in@rtgva|
|00000010| 78 2e 55 55 43 50 20 53 | 61 74 20 53 65 70 20 20 |x.UUCP S|at Sep |
|00000020| 36 20 31 39 3a 31 38 3a | 30 34 20 31 39 38 36 0a |6 19:18:|04 1986.|
|00000030| 50 61 74 68 3a 20 62 65 | 6e 6f 21 73 65 69 73 6d |Path: be|no!seism|
|00000040| 6f 21 75 77 76 61 78 21 | 68 75 73 63 36 21 70 61 |o!uwvax!|husc6!pa|
|00000050| 6e 64 61 21 67 65 6e 72 | 61 64 21 64 65 63 76 61 |nda!genr|ad!decva|
|00000060| 78 21 64 65 63 77 72 6c | 21 61 6d 64 63 61 64 21 |x!decwrl|!amdcad!|
|00000070| 63 61 65 37 38 30 21 6c | 65 61 64 73 76 21 72 74 |cae780!l|eadsv!rt|
|00000080| 67 76 61 78 21 72 61 6d | 69 6e 0a 46 72 6f 6d 3a |gvax!ram|in.From:|
|00000090| 20 72 61 6d 69 6e 40 72 | 74 67 76 61 78 2e 55 55 | ramin@r|tgvax.UU|
|000000a0| 43 50 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 6e |CP.Newsg|roups: n|
|000000b0| 65 74 2e 64 65 63 75 73 | 0a 53 75 62 6a 65 63 74 |et.decus|.Subject|
|000000c0| 3a 20 52 65 61 64 69 6e | 67 20 54 41 52 20 66 72 |: Readin|g TAR fr|
|000000d0| 6f 6d 20 56 4d 53 0a 4d | 65 73 73 61 67 65 2d 49 |om VMS.M|essage-I|
|000000e0| 44 3a 20 3c 39 31 40 72 | 74 67 76 61 78 2e 55 55 |D: <91@r|tgvax.UU|
|000000f0| 43 50 3e 0a 44 61 74 65 | 3a 20 36 20 53 65 70 20 |CP>.Date|: 6 Sep |
|00000100| 38 36 20 32 33 3a 31 38 | 3a 30 34 20 47 4d 54 0a |86 23:18|:04 GMT.|
|00000110| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 45 72 |Organiza|tion: Er|
|00000120| 65 77 68 6f 6e 20 54 72 | 61 76 65 6c 0a 4c 69 6e |ewhon Tr|avel.Lin|
|00000130| 65 73 3a 20 31 36 30 37 | 0a 4b 65 79 77 6f 72 64 |es: 1607|.Keyword|
|00000140| 73 3a 20 53 75 6d 6d 61 | 72 69 65 73 2c 20 2a 41 |s: Summa|ries, *A|
|00000150| 43 54 55 41 4c 20 50 52 | 4f 47 52 41 4d 53 2a 20 |CTUAL PR|OGRAMS* |
|00000160| 28 79 6f 77 21 29 0a 50 | 6f 73 74 65 64 3a 20 53 |(yow!).P|osted: S|
|00000170| 61 74 20 53 65 70 20 20 | 36 20 31 39 3a 31 38 3a |at Sep |6 19:18:|
|00000180| 30 34 20 31 39 38 36 0a | 0a 0a 57 65 6c 6c 2e 2e |04 1986.|..Well..|
|00000190| 2e 20 6d 79 20 72 65 63 | 65 6e 74 20 69 6e 71 75 |. my rec|ent inqu|
|000001a0| 69 72 79 20 61 62 6f 75 | 74 20 54 41 52 20 70 72 |iry abou|t TAR pr|
|000001b0| 6f 67 72 61 6d 73 20 69 | 6e 20 56 4d 53 20 67 61 |ograms i|n VMS ga|
|000001c0| 72 6e 69 73 68 65 64 20 | 6d 65 0a 74 68 65 20 66 |rnished |me.the f|
|000001d0| 6f 6c 6c 6f 77 69 6e 67 | 20 72 65 73 70 6f 6e 73 |ollowing| respons|
|000001e0| 65 73 2e 2e 2e 20 54 68 | 65 20 6c 61 73 74 20 74 |es... Th|e last t|
|000001f0| 77 6f 20 68 61 76 65 20 | 61 63 74 75 61 6c 20 70 |wo have |actual p|
|00000200| 72 6f 67 72 61 6d 73 0a | 74 68 61 74 20 77 65 72 |rograms.|that wer|
|00000210| 65 20 65 6e 63 6c 6f 73 | 65 64 20 61 6e 64 20 49 |e enclos|ed and I|
|00000220| 20 68 61 76 65 20 69 6e | 63 6c 75 64 65 64 20 74 | have in|cluded t|
|00000230| 68 65 6d 20 76 65 72 62 | 61 74 69 6d 20 28 74 68 |hem verb|atim (th|
|00000240| 6f 75 67 68 0a 69 74 20 | 73 65 65 6d 73 20 74 68 |ough.it |seems th|
|00000250| 65 79 20 61 72 65 20 63 | 6c 6f 73 65 6c 79 20 72 |ey are c|losely r|
|00000260| 65 6c 61 74 65 64 2e 2e | 2e 20 62 75 74 20 49 20 |elated..|. but I |
|00000270| 74 68 6f 75 67 68 74 20 | 49 27 64 20 74 68 72 6f |thought |I'd thro|
|00000280| 77 20 74 68 65 6d 0a 62 | 6f 74 68 20 69 6e 20 61 |w them.b|oth in a|
|00000290| 6e 79 77 61 79 2e 2e 2e | 29 20 49 20 61 6c 73 6f |nyway...|) I also|
|000002a0| 20 68 61 76 65 20 61 6e | 6f 74 68 65 72 20 46 4f | have an|other FO|
|000002b0| 52 54 52 41 4e 20 6f 6e | 65 20 68 65 72 65 20 74 |RTRAN on|e here t|
|000002c0| 68 61 74 20 73 6f 6d 65 | 6f 6e 65 20 61 74 0a 61 |hat some|one at.a|
|000002d0| 20 73 69 73 74 65 72 20 | 63 6f 6d 70 61 6e 79 20 | sister |company |
|000002e0| 77 72 6f 74 65 2e 20 49 | 20 68 61 76 65 6e 27 74 |wrote. I| haven't|
|000002f0| 20 69 6e 63 6c 75 64 65 | 64 20 69 74 20 73 69 6e | include|d it sin|
|00000300| 63 65 20 49 20 64 6f 6e | 27 74 20 6b 6e 6f 77 0a |ce I don|'t know.|
|00000310| 69 66 20 68 65 20 77 61 | 6e 74 73 20 69 74 20 64 |if he wa|nts it d|
|00000320| 69 73 74 72 69 62 75 74 | 65 64 2e 2e 2e 0a 0a 49 |istribut|ed.....I|
|00000330| 20 68 61 76 65 20 6e 6f | 74 20 66 75 6c 6c 79 20 | have no|t fully |
|00000340| 74 65 73 74 65 64 20 61 | 6e 79 20 6f 66 20 74 68 |tested a|ny of th|
|00000350| 65 6d 2e 20 42 75 74 20 | 73 69 6e 63 65 20 74 68 |em. But |since th|
|00000360| 69 73 20 6d 61 63 68 69 | 6e 65 20 69 73 0a 73 68 |is machi|ne is.sh|
|00000370| 6f 72 74 6c 79 20 64 75 | 65 20 74 6f 20 67 6f 20 |ortly du|e to go |
|00000380| 6f 66 66 20 74 68 65 20 | 6e 65 74 20 49 20 66 69 |off the |net I fi|
|00000390| 67 75 72 65 64 20 49 20 | 73 68 6f 75 6c 64 20 73 |gured I |should s|
|000003a0| 65 6e 64 20 69 74 20 6f | 75 74 0a 62 65 66 6f 72 |end it o|ut.befor|
|000003b0| 65 20 74 68 65 79 20 70 | 75 6c 6c 20 74 68 65 20 |e they p|ull the |
|000003c0| 70 6c 75 67 2e 2e 2e 28 | 3a 2d 28 20 42 61 72 72 |plug...(|:-( Barr|
|000003d0| 69 6e 67 20 63 69 72 63 | 75 6d 73 74 61 6e 63 65 |ing circ|umstance|
|000003e0| 73 20 49 20 73 68 6f 75 | 6c 64 20 62 65 0a 62 61 |s I shou|ld be.ba|
|000003f0| 63 6b 20 6f 6e 20 74 68 | 65 20 6e 65 74 20 76 69 |ck on th|e net vi|
|00000400| 61 20 61 6e 6f 74 68 65 | 72 20 73 79 73 74 65 6d |a anothe|r system|
|00000410| 20 69 6e 20 61 62 6f 75 | 74 20 61 20 6d 6f 6e 74 | in abou|t a mont|
|00000420| 68 20 61 6e 64 20 49 20 | 6d 69 67 68 74 0a 66 69 |h and I |might.fi|
|00000430| 78 20 75 70 20 74 68 65 | 20 70 72 6f 67 72 61 6d |x up the| program|
|00000440| 73 20 74 6f 20 61 6c 6c | 6f 77 20 73 75 62 64 69 |s to all|ow subdi|
|00000450| 72 65 63 74 6f 72 79 20 | 63 72 65 61 74 69 6f 6e |rectory |creation|
|00000460| 73 2c 20 65 74 63 2e 2e | 2e 29 0a 0a 41 67 61 69 |s, etc..|.)..Agai|
|00000470| 6e 2c 20 74 68 61 6e 6b | 73 20 74 6f 20 61 6c 6c |n, thank|s to all|
|00000480| 20 77 68 6f 20 72 65 73 | 70 6f 6e 64 65 64 2e 0a | who res|ponded..|
|00000490| 0a 50 2e 53 2e 20 4a 6f | 68 6e 20 47 69 6c 6d 6f |.P.S. Jo|hn Gilmo|
|000004a0| 72 65 20 28 68 6f 70 74 | 6f 61 64 21 67 6e 75 29 |re (hopt|oad!gnu)|
|000004b0| 20 68 61 73 20 61 6c 73 | 6f 20 6f 66 66 65 72 65 | has als|o offere|
|000004c0| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 61 20 43 20 |d a copy| of a C |
|000004d0| 54 41 52 20 70 72 6f 67 | 72 61 6d 0a 68 65 20 68 |TAR prog|ram.he h|
|000004e0| 61 73 2e 2e 2e 20 48 6f | 70 65 66 75 6c 6c 79 20 |as... Ho|pefully |
|000004f0| 49 27 6c 6c 20 67 65 74 | 20 69 74 20 73 6f 6f 6e |I'll get| it soon|
|00000500| 20 65 6e 6f 75 67 68 2e | 2e 2e 20 49 66 20 73 6f | enough.|.. If so|
|00000510| 6d 65 6f 6e 65 20 6e 65 | 65 64 73 20 74 6f 0a 74 |meone ne|eds to.t|
|00000520| 72 79 20 69 74 20 6f 75 | 74 20 74 68 65 79 20 63 |ry it ou|t they c|
|00000530| 6f 75 6c 64 20 63 6f 6e | 74 61 63 74 20 68 69 6d |ould con|tact him|
|00000540| 20 64 69 72 65 63 74 6c | 79 20 69 66 20 49 27 6d | directl|y if I'm|
|00000550| 20 6e 6f 74 20 61 72 6f | 75 6e 64 2e 2e 2e 0a 0a | not aro|und.....|
|00000560| 72 61 6d 69 6e 0a 0a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ramin..*|********|
|00000570| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000580| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000590| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005b0| 2a 2a 0a 0a 46 72 6f 6d | 3a 20 48 7d 76 61 72 64 |**..From|: H}vard|
|000005c0| 20 45 69 64 6e 65 73 20 | 3c 6c 6c 6c 2d 6c 63 63 | Eidnes |<lll-lcc|
|000005d0| 21 63 61 69 70 21 73 65 | 69 73 6d 6f 21 6d 63 76 |!caip!se|ismo!mcv|
|000005e0| 61 78 21 76 61 78 2e 72 | 75 6e 69 74 2e 75 6e 69 |ax!vax.r|unit.uni|
|000005f0| 74 2e 75 6e 69 6e 65 74 | 74 21 48 5f 45 69 64 6e |t.uninet|t!H_Eidn|
|00000600| 65 73 3e 0a 0a 49 20 73 | 61 77 20 79 6f 75 72 20 |es>..I s|aw your |
|00000610| 72 65 63 65 6e 74 20 72 | 65 71 75 65 73 74 20 66 |recent r|equest f|
|00000620| 6f 72 20 73 6f 6d 65 20 | 54 41 52 20 70 72 6f 67 |or some |TAR prog|
|00000630| 72 61 6d 20 6f 6e 20 56 | 4d 53 2e 20 49 74 20 6a |ram on V|MS. It j|
|00000640| 75 73 74 0a 68 61 70 70 | 65 6e 73 20 74 68 61 74 |ust.happ|ens that|
|00000650| 20 61 20 66 72 69 65 6e | 64 20 6f 66 20 6d 69 6e | a frien|d of min|
|00000660| 65 20 72 65 63 65 6e 74 | 6c 79 20 77 72 6f 74 65 |e recent|ly wrote|
|00000670| 20 73 75 63 68 20 61 20 | 70 72 6f 67 72 61 6d 2e | such a |program.|
|00000680| 0a 54 68 65 20 70 72 6f | 67 72 61 6d 20 69 73 20 |.The pro|gram is |
|00000690| 77 72 69 74 74 65 6e 20 | 69 6e 20 56 4d 53 20 50 |written |in VMS P|
|000006a0| 61 73 63 61 6c 2e 20 49 | 74 20 68 61 73 20 6d 61 |ascal. I|t has ma|
|000006b0| 69 6e 6c 79 20 62 65 65 | 6e 20 75 73 65 64 0a 74 |inly bee|n used.t|
|000006c0| 6f 20 72 65 61 64 20 54 | 41 52 20 74 61 70 65 73 |o read T|AR tapes|
|000006d0| 20 64 6f 77 6e 20 74 6f | 20 54 41 52 20 66 69 6c | down to| TAR fil|
|000006e0| 65 73 20 6f 6e 20 64 69 | 73 6b 20 74 6f 20 62 65 |es on di|sk to be|
|000006f0| 20 74 72 61 6e 73 66 65 | 72 72 65 64 0a 74 6f 20 | transfe|rred.to |
|00000700| 61 20 55 6e 69 78 20 73 | 79 73 74 65 6d 20 74 6f |a Unix s|ystem to|
|00000710| 20 62 65 20 75 6e 70 61 | 63 6b 65 64 2e 20 57 65 | be unpa|cked. We|
|00000720| 27 76 65 20 75 73 65 64 | 20 4b 65 72 6d 69 74 20 |'ve used| Kermit |
|00000730| 74 6f 20 74 72 61 6e 73 | 66 65 72 0a 66 72 6f 6d |to trans|fer.from|
|00000740| 20 6f 75 72 20 56 4d 53 | 20 63 6f 6d 70 75 74 65 | our VMS| compute|
|00000750| 72 20 74 6f 20 61 20 4d | 69 63 72 6f 56 41 58 20 |r to a M|icroVAX |
|00000760| 49 49 20 28 77 69 74 68 | 6f 75 74 20 31 2f 32 22 |II (with|out 1/2"|
|00000770| 20 74 61 70 65 29 2c 20 | 61 6e 64 0a 74 68 61 74 | tape), |and.that|
|00000780| 20 68 61 73 20 77 6f 72 | 6b 65 64 2c 20 62 75 74 | has wor|ked, but|
|00000790| 20 69 73 20 73 6c 6f 77 | 2c 20 65 67 2e 20 69 74 | is slow|, eg. it|
|000007a0| 20 74 6f 6f 6b 20 31 32 | 68 72 73 20 74 72 61 6e | took 12|hrs tran|
|000007b0| 73 66 65 72 72 69 6e 67 | 0a 54 65 58 2c 20 62 75 |sferring|.TeX, bu|
|000007c0| 74 20 69 74 20 77 6f 72 | 6b 65 64 2e 2e 2e 0a 0a |t it wor|ked.....|
|000007d0| 54 68 65 20 50 61 73 63 | 61 6c 20 70 72 6f 67 72 |The Pasc|al progr|
|000007e0| 61 6d 20 69 73 20 63 61 | 70 61 62 6c 65 20 6f 66 |am is ca|pable of|
|000007f0| 20 6a 75 73 74 20 65 78 | 74 72 61 63 74 69 6e 67 | just ex|tracting|
|00000800| 20 61 20 70 61 72 74 20 | 6f 66 20 61 20 74 61 70 | a part |of a tap|
|00000810| 65 0a 62 79 20 67 69 76 | 69 6e 67 20 69 74 20 61 |e.by giv|ing it a|
|00000820| 20 73 74 61 72 74 69 6e | 67 20 61 6e 64 20 65 6e | startin|g and en|
|00000830| 64 69 6e 67 20 66 69 6c | 65 6e 61 6d 65 20 70 72 |ding fil|ename pr|
|00000840| 65 66 69 78 2e 20 49 74 | 20 61 6c 73 6f 20 68 61 |efix. It| also ha|
|00000850| 73 0a 72 6f 75 74 69 6e | 65 73 20 74 6f 20 64 6f |s.routin|es to do|
|00000860| 20 61 63 74 75 61 6c 20 | 65 78 74 72 61 63 74 69 | actual |extracti|
|00000870| 6f 6e 20 6f 6e 20 56 4d | 53 2c 20 62 75 74 20 77 |on on VM|S, but w|
|00000880| 65 20 68 61 76 65 6e 27 | 74 20 75 73 65 64 20 74 |e haven'|t used t|
|00000890| 68 65 73 65 0a 72 6f 75 | 74 69 6e 65 73 20 6d 75 |hese.rou|tines mu|
|000008a0| 63 68 2e 20 4e 42 3a 20 | 74 68 65 20 70 72 6f 67 |ch. NB: |the prog|
|000008b0| 72 61 6d 20 6f 6e 6c 79 | 20 68 61 6e 64 6c 65 73 |ram only| handles|
|000008c0| 20 54 41 52 20 66 69 6c | 65 73 20 62 6c 6f 63 6b | TAR fil|es block|
|000008d0| 65 64 20 32 30 2e 0a 0a | 49 20 77 69 6c 6c 20 62 |ed 20...|I will b|
|000008e0| 65 20 68 61 70 70 79 20 | 74 6f 20 73 65 6e 64 20 |e happy |to send |
|000008f0| 79 6f 75 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |you the |program |
|00000900| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 69 74 2e 0a |if you w|ant it..|
|00000910| 0a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00000920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 0a 46 72 |********|****..Fr|
|00000960| 6f 6d 3a 20 6c 6c 6c 2d | 6c 63 63 21 63 61 69 70 |om: lll-|lcc!caip|
|00000970| 21 75 77 2d 62 65 61 76 | 65 72 21 75 77 2d 6a 75 |!uw-beav|er!uw-ju|
|00000980| 6e 65 21 67 6f 72 64 6f | 6e 20 28 47 6f 72 64 6f |ne!gordo|n (Gordo|
|00000990| 6e 20 44 61 76 69 73 73 | 6f 6e 29 0a 0a 48 65 72 |n Daviss|on)..Her|
|000009a0| 65 27 73 20 61 20 70 72 | 6f 67 72 61 6d 20 74 68 |e's a pr|ogram th|
|000009b0| 61 74 20 64 6f 65 73 20 | 77 68 61 74 20 79 6f 75 |at does |what you|
|000009c0| 20 77 61 6e 74 2e 20 20 | 49 74 20 64 69 64 20 67 | want. |It did g|
|000009d0| 65 74 20 69 6e 74 6f 20 | 61 20 72 65 63 65 6e 74 |et into |a recent|
|000009e0| 20 64 65 63 75 73 0a 74 | 61 70 65 20 28 56 41 58 | decus.t|ape (VAX|
|000009f0| 38 35 43 3f 29 2c 20 62 | 75 74 20 74 68 61 74 20 |85C?), b|ut that |
|00000a00| 76 65 72 73 69 6f 6e 20 | 68 61 70 70 65 6e 73 20 |version |happens |
|00000a10| 74 6f 20 6e 6f 74 20 77 | 6f 72 6b 2e 20 20 55 73 |to not w|ork. Us|
|00000a20| 65 20 74 68 69 73 20 69 | 6e 73 74 65 61 64 2e 0a |e this i|nstead..|
|00000a30| 0a 2d 2d 20 0a 48 75 6d | 61 6e 3a 20 20 20 20 47 |.-- .Hum|an: G|
|00000a40| 6f 72 64 6f 6e 20 44 61 | 76 69 73 73 6f 6e 0a 41 |ordon Da|visson.A|
|00000a50| 52 50 41 3a 20 20 20 20 | 20 67 6f 72 64 6f 6e 40 |RPA: | gordon@|
|00000a60| 75 77 2d 6a 75 6e 65 2e | 41 52 50 41 0a 55 55 43 |uw-june.|ARPA.UUC|
|00000a70| 50 3a 20 20 20 20 20 7b | 69 68 6e 70 34 2c 64 65 |P: {|ihnp4,de|
|00000a80| 63 76 61 78 2c 74 65 6b | 74 72 6f 6e 69 78 7d 21 |cvax,tek|tronix}!|
|00000a90| 75 77 2d 62 65 61 76 65 | 72 21 75 77 2d 6a 75 6e |uw-beave|r!uw-jun|
|00000aa0| 65 21 67 6f 72 64 6f 6e | 0a 42 69 74 6e 65 74 3a |e!gordon|.Bitnet:|
|00000ab0| 20 20 20 67 6f 72 64 6f | 6e 40 75 77 61 70 68 61 | gordo|n@uwapha|
|00000ac0| 73 74 0a 41 54 54 3a 20 | 20 20 20 20 20 28 32 30 |st.ATT: | (20|
|00000ad0| 36 29 20 35 32 37 2d 30 | 38 33 32 0a 55 53 6e 61 |6) 527-0|832.USna|
|00000ae0| 69 6c 3a 20 20 20 35 30 | 30 38 20 31 32 74 68 20 |il: 50|08 12th |
|00000af0| 4e 45 2c 20 53 65 61 74 | 74 6c 65 2c 20 57 41 2c |NE, Seat|tle, WA,|
|00000b00| 20 39 38 31 30 35 0a 0a | 2d 2d 2d 2d 2d 2d 2d 2d | 98105..|--------|
|00000b10| 2d 2d 2d 2d 2d 2d 2d 20 | 63 75 74 20 68 65 72 65 |------- |cut here|
|00000b20| 2c 20 74 68 65 6e 20 72 | 75 6e 20 74 68 65 20 66 |, then r|un the f|
|00000b30| 69 6c 65 20 28 77 69 74 | 68 20 61 6e 20 40 29 20 |ile (wit|h an @) |
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000b50| 24 21 0a 24 20 77 72 69 | 74 65 20 73 79 73 24 6f |$!.$ wri|te sys$o|
|00000b60| 75 74 70 75 74 20 22 63 | 72 65 61 74 69 6e 67 20 |utput "c|reating |
|00000b70| 43 56 54 2e 46 4f 52 22 | 0a 24 20 63 72 65 61 74 |CVT.FOR"|.$ creat|
|00000b80| 65 20 43 56 54 2e 46 4f | 52 0a 24 20 64 65 63 6b |e CVT.FO|R.$ deck|
|00000b90| 0a 63 0a 63 20 74 68 69 | 73 20 73 75 62 72 6f 75 |.c.c thi|s subrou|
|00000ba0| 74 69 6e 65 20 63 6f 6e | 76 65 72 74 73 20 61 20 |tine con|verts a |
|00000bb0| 63 6f 6d 70 6c 65 74 65 | 20 66 69 6c 65 73 70 65 |complete| filespe|
|00000bc0| 63 20 28 64 69 72 65 63 | 74 6f 72 79 2b 66 69 6c |c (direc|tory+fil|
|00000bd0| 65 29 20 6e 61 6d 65 20 | 66 72 6f 6d 0a 63 20 75 |e) name |from.c u|
|00000be0| 6e 69 78 20 66 6f 72 6d | 61 74 20 74 6f 20 56 4d |nix form|at to VM|
|00000bf0| 53 0a 63 0a 20 20 20 20 | 20 20 73 75 62 72 6f 75 |S.c. | subrou|
|00000c00| 74 69 6e 65 20 63 76 74 | 5f 64 69 72 5f 75 76 28 |tine cvt|_dir_uv(|
|00000c10| 20 75 6e 69 78 2c 20 76 | 6d 73 2c 20 76 6c 65 6e | unix, v|ms, vlen|
|00000c20| 20 29 0a 0a 20 20 20 20 | 20 20 70 61 72 61 6d 65 | ).. | parame|
|00000c30| 74 65 72 20 72 65 73 65 | 72 76 65 64 20 3d 20 31 |ter rese|rved = 1|
|00000c40| 30 0a 20 20 20 20 20 20 | 63 68 61 72 61 63 74 65 |0. |characte|
|00000c50| 72 2a 28 2a 29 20 75 6e | 69 78 2c 20 76 6d 73 0a |r*(*) un|ix, vms.|
|00000c60| 20 20 20 20 20 20 69 6e | 74 65 67 65 72 2a 32 20 | in|teger*2 |
|00000c70| 76 6c 65 6e 2c 20 69 2c | 20 6a 0a 0a 20 20 20 20 |vlen, i,| j.. |
|00000c80| 20 20 76 6d 73 28 20 31 | 3a 31 20 29 20 3d 20 27 | vms( 1|:1 ) = '|
|00000c90| 5b 27 0a 20 20 20 20 20 | 20 76 6c 65 6e 20 3d 20 |['. | vlen = |
|00000ca0| 31 0a 20 20 20 20 20 20 | 69 20 3d 20 31 0a 20 20 |1. |i = 1. |
|00000cb0| 20 20 20 20 69 66 20 28 | 20 75 6e 69 78 28 20 31 | if (| unix( 1|
|00000cc0| 3a 31 20 29 20 2e 65 71 | 2e 20 27 2f 27 20 29 20 |:1 ) .eq|. '/' ) |
|00000cd0| 69 20 3d 20 32 0a 20 20 | 20 20 20 20 6a 20 3d 20 |i = 2. | j = |
|00000ce0| 69 6e 64 65 78 28 20 75 | 6e 69 78 28 20 69 3a 20 |index( u|nix( i: |
|00000cf0| 29 2c 20 27 2f 27 20 29 | 0a 20 20 20 20 20 20 64 |), '/' )|. d|
|00000d00| 6f 20 77 68 69 6c 65 20 | 28 20 6a 20 2e 6e 65 2e |o while |( j .ne.|
|00000d10| 20 30 20 29 0a 20 20 20 | 20 20 20 20 20 20 76 6d | 0 ). | vm|
|00000d20| 73 28 20 76 6c 65 6e 2b | 31 3a 76 6c 65 6e 2b 31 |s( vlen+|1:vlen+1|
|00000d30| 20 29 20 3d 20 27 2e 27 | 0a 20 20 20 20 20 20 20 | ) = '.'|. |
|00000d40| 20 20 63 61 6c 6c 20 63 | 76 74 5f 73 74 72 69 6e | call c|vt_strin|
|00000d50| 67 5f 75 76 28 20 75 6e | 69 78 28 20 69 20 3a 20 |g_uv( un|ix( i : |
|00000d60| 69 2b 6a 2d 32 20 29 2c | 20 76 6d 73 28 20 76 6c |i+j-2 ),| vms( vl|
|00000d70| 65 6e 2b 32 3a 20 29 2c | 20 6b 20 29 0a 20 20 20 |en+2: ),| k ). |
|00000d80| 20 20 20 20 20 20 69 20 | 3d 20 69 20 2b 20 6a 0a | i |= i + j.|
|00000d90| 20 20 20 20 20 20 20 20 | 20 6a 20 3d 20 69 6e 64 | | j = ind|
|00000da0| 65 78 28 20 75 6e 69 78 | 28 20 69 3a 20 29 2c 20 |ex( unix|( i: ), |
|00000db0| 27 2f 27 20 29 0a 20 20 | 20 20 20 20 20 20 20 76 |'/' ). | v|
|00000dc0| 6c 65 6e 20 3d 20 76 6c | 65 6e 20 2b 20 6b 20 2b |len = vl|en + k +|
|00000dd0| 20 31 0a 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | 1. | if (|
|00000de0| 20 76 6c 65 6e 20 2b 20 | 72 65 73 65 72 76 65 64 | vlen + |reserved|
|00000df0| 20 2e 67 74 2e 20 6c 65 | 6e 28 20 76 6d 73 20 29 | .gt. le|n( vms )|
|00000e00| 29 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |) then. | |
|00000e10| 20 20 20 76 6c 65 6e 20 | 3d 20 6c 65 6e 28 20 76 | vlen |= len( v|
|00000e20| 6d 73 20 29 20 2d 20 72 | 65 73 65 72 76 65 64 0a |ms ) - r|eserved.|
|00000e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00000e40| 20 76 6d 73 28 20 76 6c | 65 6e 3a 76 6c 65 6e 20 | vms( vl|en:vlen |
|00000e50| 29 20 2e 65 71 2e 20 27 | 2e 27 20 29 20 76 6c 65 |) .eq. '|.' ) vle|
|00000e60| 6e 20 3d 20 76 6c 65 6e | 20 2d 20 31 0a 20 20 20 |n = vlen| - 1. |
|00000e70| 20 20 20 20 20 20 20 20 | 20 64 6f 20 77 68 69 6c | | do whil|
|00000e80| 65 20 28 20 6a 20 2e 6e | 65 2e 20 30 20 29 0a 20 |e ( j .n|e. 0 ). |
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 20 | | i |
|00000ea0| 3d 20 69 20 2b 20 6a 0a | 20 20 20 20 20 20 20 20 |= i + j.| |
|00000eb0| 20 20 20 20 20 20 20 6a | 20 3d 20 69 6e 64 65 78 | j| = index|
|00000ec0| 28 20 75 6e 69 78 28 20 | 69 3a 20 29 2c 20 27 2f |( unix( |i: ), '/|
|00000ed0| 27 20 29 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |' ). | |
|00000ee0| 65 6e 64 20 64 6f 0a 20 | 20 20 20 20 20 20 20 20 |end do. | |
|00000ef0| 65 6e 64 20 69 66 0a 20 | 20 20 20 20 20 65 6e 64 |end if. | end|
|00000f00| 20 64 6f 0a 0a 20 20 20 | 20 20 20 69 66 20 28 20 | do.. | if ( |
|00000f10| 76 6c 65 6e 20 2e 65 71 | 2e 20 31 20 29 20 74 68 |vlen .eq|. 1 ) th|
|00000f20| 65 6e 0a 20 20 20 20 20 | 20 20 20 20 76 6c 65 6e |en. | vlen|
|00000f30| 20 3d 20 30 0a 20 20 20 | 20 20 20 65 6c 73 65 0a | = 0. | else.|
|00000f40| 20 20 20 20 20 20 20 20 | 20 76 6c 65 6e 20 3d 20 | | vlen = |
|00000f50| 76 6c 65 6e 20 2b 20 31 | 0a 20 20 20 20 20 20 20 |vlen + 1|. |
|00000f60| 20 20 76 6d 73 28 20 76 | 6c 65 6e 3a 76 6c 65 6e | vms( v|len:vlen|
|00000f70| 20 29 20 3d 20 27 5d 27 | 0a 20 20 20 20 20 20 65 | ) = ']'|. e|
|00000f80| 6e 64 20 69 66 0a 0a 20 | 20 20 20 20 20 63 61 6c |nd if.. | cal|
|00000f90| 6c 20 63 76 74 5f 66 69 | 6c 65 5f 75 76 28 20 75 |l cvt_fi|le_uv( u|
|00000fa0| 6e 69 78 28 20 69 3a 20 | 29 2c 20 76 6d 73 28 20 |nix( i: |), vms( |
|00000fb0| 76 6c 65 6e 2b 31 3a 20 | 29 2c 20 6b 20 29 0a 20 |vlen+1: |), k ). |
|00000fc0| 20 20 20 20 20 76 6c 65 | 6e 20 3d 20 76 6c 65 6e | vle|n = vlen|
|00000fd0| 20 2b 20 6b 0a 20 20 20 | 20 20 20 72 65 74 75 72 | + k. | retur|
|00000fe0| 6e 0a 0a 20 20 20 20 20 | 20 65 6e 64 20 20 20 20 |n.. | end |
|00000ff0| 20 20 0a 0a 63 0a 63 20 | 74 68 69 73 20 73 75 62 | ..c.c |this sub|
|00001000| 72 6f 75 74 69 6e 65 20 | 63 6f 6e 76 65 72 74 73 |routine |converts|
|00001010| 20 61 6e 20 69 6e 64 69 | 76 69 64 75 61 6c 20 66 | an indi|vidual f|
|00001020| 69 6c 65 20 6e 61 6d 65 | 20 66 72 6f 6d 20 75 6e |ile name| from un|
|00001030| 69 78 20 66 6f 72 6d 61 | 74 20 74 6f 20 56 4d 53 |ix forma|t to VMS|
|00001040| 0a 63 0a 20 20 20 20 20 | 20 73 75 62 72 6f 75 74 |.c. | subrout|
|00001050| 69 6e 65 20 63 76 74 5f | 66 69 6c 65 5f 75 76 28 |ine cvt_|file_uv(|
|00001060| 20 75 6e 69 78 2c 20 76 | 6d 73 2c 20 76 6c 65 6e | unix, v|ms, vlen|
|00001070| 20 29 0a 0a 20 20 20 20 | 20 20 70 61 72 61 6d 65 | ).. | parame|
|00001080| 74 65 72 20 6d 6c 65 6e | 31 20 3d 20 36 34 2c 20 |ter mlen|1 = 64, |
|00001090| 6d 6c 65 6e 32 20 3d 20 | 36 34 0a 63 20 20 20 20 |mlen2 = |64.c |
|000010a0| 20 70 61 72 61 6d 65 74 | 65 72 20 6d 6c 65 6e 31 | paramet|er mlen1|
|000010b0| 20 3d 20 39 2c 20 6d 6c | 65 6e 32 20 3d 20 33 20 | = 9, ml|en2 = 3 |
|000010c0| 20 20 20 20 20 20 21 20 | 66 6f 72 20 76 65 72 73 | ! |for vers|
|000010d0| 69 6f 6e 20 33 20 61 6e | 64 20 62 65 66 6f 72 65 |ion 3 an|d before|
|000010e0| 0a 20 20 20 20 20 20 63 | 68 61 72 61 63 74 65 72 |. c|haracter|
|000010f0| 2a 28 2a 29 20 75 6e 69 | 78 2c 20 76 6d 73 0a 20 |*(*) uni|x, vms. |
|00001100| 20 20 20 20 20 69 6e 74 | 65 67 65 72 2a 32 20 76 | int|eger*2 v|
|00001110| 6c 65 6e 2c 20 69 2c 20 | 6a 0a 0a 20 20 20 20 20 |len, i, |j.. |
|00001120| 20 69 20 3d 20 69 6e 64 | 65 78 28 20 75 6e 69 78 | i = ind|ex( unix|
|00001130| 2c 20 27 2e 27 20 29 0a | 20 20 20 20 20 20 69 66 |, '.' ).| if|
|00001140| 20 28 20 69 20 2e 65 71 | 2e 20 30 20 29 20 69 20 | ( i .eq|. 0 ) i |
|00001150| 3d 20 6c 65 6e 28 20 75 | 6e 69 78 20 29 20 2b 20 |= len( u|nix ) + |
|00001160| 31 0a 0a 20 20 20 20 20 | 20 63 61 6c 6c 20 63 76 |1.. | call cv|
|00001170| 74 5f 73 74 72 69 6e 67 | 5f 75 76 28 20 75 6e 69 |t_string|_uv( uni|
|00001180| 78 28 20 3a 69 2d 31 20 | 29 2c 20 76 6d 73 2c 20 |x( :i-1 |), vms, |
|00001190| 6a 20 29 0a 20 20 20 20 | 20 20 69 66 20 28 20 6a |j ). | if ( j|
|000011a0| 20 2e 67 74 2e 20 6d 6c | 65 6e 31 20 29 20 6a 20 | .gt. ml|en1 ) j |
|000011b0| 3d 20 6d 6c 65 6e 31 0a | 20 20 20 20 20 20 76 6c |= mlen1.| vl|
|000011c0| 65 6e 20 3d 20 6a 20 2b | 20 31 0a 20 20 20 20 20 |en = j +| 1. |
|000011d0| 20 69 66 20 28 20 76 6c | 65 6e 20 2e 67 74 2e 20 | if ( vl|en .gt. |
|000011e0| 6c 65 6e 28 20 76 6d 73 | 20 29 29 20 76 6c 65 6e |len( vms| )) vlen|
|000011f0| 20 3d 20 6c 65 6e 28 20 | 76 6d 73 20 29 0a 20 20 | = len( |vms ). |
|00001200| 20 20 20 20 76 6d 73 28 | 20 76 6c 65 6e 3a 76 6c | vms(| vlen:vl|
|00001210| 65 6e 20 29 20 3d 20 27 | 2e 27 0a 0a 20 20 20 20 |en ) = '|.'.. |
|00001220| 20 20 69 66 20 28 20 69 | 20 2e 67 65 2e 20 6c 65 | if ( i| .ge. le|
|00001230| 6e 28 20 75 6e 69 78 20 | 29 29 20 72 65 74 75 72 |n( unix |)) retur|
|00001240| 6e 0a 0a 20 20 20 20 20 | 20 63 61 6c 6c 20 63 76 |n.. | call cv|
|00001250| 74 5f 73 74 72 69 6e 67 | 5f 75 76 28 20 75 6e 69 |t_string|_uv( uni|
|00001260| 78 28 20 69 2b 31 3a 20 | 29 2c 20 76 6d 73 28 20 |x( i+1: |), vms( |
|00001270| 76 6c 65 6e 2b 31 3a 20 | 29 2c 20 6a 20 29 0a 20 |vlen+1: |), j ). |
|00001280| 20 20 20 20 20 69 66 20 | 28 20 6a 20 2e 67 74 2e | if |( j .gt.|
|00001290| 20 6d 6c 65 6e 32 20 29 | 20 6a 20 3d 20 6d 6c 65 | mlen2 )| j = mle|
|000012a0| 6e 32 0a 20 20 20 20 20 | 20 76 6c 65 6e 20 3d 20 |n2. | vlen = |
|000012b0| 76 6c 65 6e 20 2b 20 6a | 0a 20 20 20 20 20 20 72 |vlen + j|. r|
|000012c0| 65 74 75 72 6e 0a 0a 20 | 20 20 20 20 20 65 6e 64 |eturn.. | end|
|000012d0| 0a 0a 63 0a 63 20 74 68 | 69 73 20 73 75 62 72 6f |..c.c th|is subro|
|000012e0| 75 74 69 6e 65 20 63 6f | 6e 76 65 72 74 73 20 61 |utine co|nverts a|
|000012f0| 20 73 74 72 69 6e 67 20 | 74 6f 20 63 68 61 72 61 | string |to chara|
|00001300| 63 74 65 72 73 20 74 68 | 61 74 20 63 61 6e 20 61 |cters th|at can a|
|00001310| 70 70 65 61 72 20 69 6e | 0a 63 20 56 4d 53 20 66 |ppear in|.c VMS f|
|00001320| 69 6c 65 6e 61 6d 65 73 | 0a 63 0a 63 20 69 66 20 |ilenames|.c.c if |
|00001330| 79 6f 75 27 72 65 20 75 | 73 69 6e 67 20 61 20 76 |you're u|sing a v|
|00001340| 65 72 73 69 6f 6e 20 33 | 20 6f 72 20 70 65 72 76 |ersion 3| or perv|
|00001350| 69 6f 75 73 20 56 4d 53 | 20 73 79 73 74 65 6d 2c |ious VMS| system,|
|00001360| 20 79 6f 75 27 6c 6c 20 | 68 61 76 65 20 74 6f 0a | you'll |have to.|
|00001370| 63 20 72 65 77 72 69 74 | 65 20 74 68 69 73 20 74 |c rewrit|e this t|
|00001380| 6f 20 61 76 6f 69 64 20 | 5f 20 61 6e 64 20 24 2e |o avoid |_ and $.|
|00001390| 0a 63 0a 20 20 20 20 20 | 20 73 75 62 72 6f 75 74 |.c. | subrout|
|000013a0| 69 6e 65 20 63 76 74 5f | 73 74 72 69 6e 67 5f 75 |ine cvt_|string_u|
|000013b0| 76 28 20 75 6e 69 78 2c | 20 76 6d 73 2c 20 76 6c |v( unix,| vms, vl|
|000013c0| 65 6e 20 29 0a 0a 20 20 | 20 20 20 20 63 68 61 72 |en ).. | char|
|000013d0| 61 63 74 65 72 2a 28 2a | 29 20 75 6e 69 78 2c 20 |acter*(*|) unix, |
|000013e0| 76 6d 73 2c 20 63 2a 31 | 0a 20 20 20 20 20 20 69 |vms, c*1|. i|
|000013f0| 6e 74 65 67 65 72 2a 32 | 20 76 6c 65 6e 2c 20 69 |nteger*2| vlen, i|
|00001400| 0a 0a 20 20 20 20 20 20 | 76 6d 73 20 3d 20 75 6e |.. |vms = un|
|00001410| 69 78 0a 20 20 20 20 20 | 20 76 6c 65 6e 20 3d 20 |ix. | vlen = |
|00001420| 6d 69 6e 28 20 6c 65 6e | 28 20 75 6e 69 78 20 29 |min( len|( unix )|
|00001430| 2c 20 6c 65 6e 28 20 76 | 6d 73 20 29 29 0a 20 20 |, len( v|ms )). |
|00001440| 20 20 20 20 64 6f 20 69 | 20 3d 20 31 2c 20 76 6c | do i| = 1, vl|
|00001450| 65 6e 0a 20 20 20 20 20 | 20 20 20 20 63 20 3d 20 |en. | c = |
|00001460| 76 6d 73 28 20 69 3a 69 | 20 29 0a 20 20 20 20 20 |vms( i:i| ). |
|00001470| 20 20 20 20 69 66 20 28 | 20 27 41 27 20 2e 6c 65 | if (| 'A' .le|
|00001480| 2e 20 63 20 2e 61 6e 64 | 2e 20 63 20 2e 6c 65 2e |. c .and|. c .le.|
|00001490| 20 27 5a 27 20 2e 6f 72 | 2e 0a 20 20 20 20 20 2d | 'Z' .or|.. -|
|000014a0| 20 20 20 20 20 20 20 20 | 27 30 27 20 2e 6c 65 2e | |'0' .le.|
|000014b0| 20 63 20 2e 61 6e 64 2e | 20 63 20 2e 6c 65 2e 20 | c .and.| c .le. |
|000014c0| 27 39 27 20 2e 6f 72 2e | 0a 20 20 20 20 20 2d 20 |'9' .or.|. - |
|000014d0| 20 20 20 20 20 20 20 63 | 20 2e 65 71 2e 20 27 5f | c| .eq. '_|
|000014e0| 27 20 2e 6f 72 2e 20 63 | 20 2e 65 71 2e 20 27 24 |' .or. c| .eq. '$|
|000014f0| 27 20 20 29 20 74 68 65 | 6e 0a 20 20 20 20 20 20 |' ) the|n. |
|00001500| 20 20 20 20 20 20 63 6f | 6e 74 69 6e 75 65 0a 20 | co|ntinue. |
|00001510| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 | |else if |
|00001520| 28 20 27 61 27 20 2e 6c | 65 2e 20 63 20 2e 61 6e |( 'a' .l|e. c .an|
|00001530| 64 2e 20 63 20 2e 6c 65 | 2e 20 27 7a 27 20 29 20 |d. c .le|. 'z' ) |
|00001540| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|00001550| 20 76 6d 73 28 20 69 3a | 69 20 29 20 3d 20 63 68 | vms( i:|i ) = ch|
|00001560| 61 72 28 20 69 63 68 61 | 72 28 20 63 20 29 20 2d |ar( icha|r( c ) -|
|00001570| 20 33 32 20 29 0a 20 20 | 20 20 20 20 20 20 20 65 | 32 ). | e|
|00001580| 6c 73 65 20 69 66 20 28 | 20 63 20 2e 65 71 2e 20 |lse if (| c .eq. |
|00001590| 27 2d 27 20 29 20 74 68 | 65 6e 0a 20 20 20 20 20 |'-' ) th|en. |
|000015a0| 20 20 20 20 20 20 20 76 | 6d 73 28 20 69 3a 69 20 | v|ms( i:i |
|000015b0| 29 20 3d 20 27 5f 27 0a | 20 20 20 20 20 20 20 20 |) = '_'.| |
|000015c0| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 20 20 | else. | |
|000015d0| 20 20 76 6d 73 28 20 69 | 3a 69 20 29 20 3d 20 27 | vms( i|:i ) = '|
|000015e0| 24 27 0a 20 20 20 20 20 | 20 20 20 20 65 6e 64 20 |$'. | end |
|000015f0| 69 66 0a 20 20 20 20 20 | 20 65 6e 64 20 64 6f 0a |if. | end do.|
|00001600| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 0a 0a 20 |. r|eturn.. |
|00001610| 20 20 20 20 20 65 6e 64 | 0a 0a 63 0a 63 20 74 68 | end|..c.c th|
|00001620| 69 73 20 73 6f 75 72 6f | 75 74 69 6e 65 20 63 6f |is souro|utine co|
|00001630| 6e 76 65 72 74 73 20 61 | 6e 20 6f 63 74 61 6c 20 |nverts a|n octal |
|00001640| 64 69 67 69 74 20 74 6f | 20 61 20 33 2d 63 68 61 |digit to| a 3-cha|
|00001650| 72 61 63 74 65 72 20 70 | 72 6f 74 65 63 74 69 6f |racter p|rotectio|
|00001660| 6e 20 6d 61 73 6b 0a 63 | 0a 20 20 20 20 20 20 73 |n mask.c|. s|
|00001670| 75 62 72 6f 75 74 69 6e | 65 20 63 76 74 5f 70 72 |ubroutin|e cvt_pr|
|00001680| 6f 74 28 20 63 2c 20 6f | 75 74 20 29 0a 0a 20 20 |ot( c, o|ut ).. |
|00001690| 20 20 20 20 63 68 61 72 | 61 63 74 65 72 20 63 2a | char|acter c*|
|000016a0| 31 2c 20 6f 75 74 2a 33 | 2c 20 6d 61 73 6b 28 20 |1, out*3|, mask( |
|000016b0| 38 20 29 2a 33 0a 20 20 | 20 20 20 20 64 61 74 61 |8 )*3. | data|
|000016c0| 20 6d 61 73 6b 20 2f 20 | 27 2d 2d 2d 27 2c 20 27 | mask / |'---', '|
|000016d0| 2d 2d 78 27 2c 20 27 2d | 77 2d 27 2c 20 27 2d 77 |--x', '-|w-', '-w|
|000016e0| 78 27 2c 0a 20 20 20 20 | 20 2d 20 20 20 20 20 20 |x',. | - |
|000016f0| 20 20 20 20 20 20 27 72 | 2d 2d 27 2c 20 27 72 2d | 'r|--', 'r-|
|00001700| 78 27 2c 20 27 72 77 2d | 27 2c 20 27 72 77 78 27 |x', 'rw-|', 'rwx'|
|00001710| 20 2f 0a 0a 20 20 20 20 | 20 20 6f 75 74 20 3d 20 | /.. | out = |
|00001720| 6d 61 73 6b 28 20 69 63 | 68 61 72 28 20 63 20 29 |mask( ic|har( c )|
|00001730| 20 2d 20 69 63 68 61 72 | 28 20 27 30 27 20 29 20 | - ichar|( '0' ) |
|00001740| 2b 20 31 20 29 0a 20 20 | 20 20 20 20 72 65 74 75 |+ 1 ). | retu|
|00001750| 72 6e 0a 0a 20 20 20 20 | 20 20 65 6e 64 0a 0a 24 |rn.. | end..$|
|00001760| 20 65 6f 64 0a 24 21 0a | 24 20 77 72 69 74 65 20 | eod.$!.|$ write |
|00001770| 73 79 73 24 6f 75 74 70 | 75 74 20 22 63 72 65 61 |sys$outp|ut "crea|
|00001780| 74 69 6e 67 20 54 41 50 | 45 49 4f 2e 44 43 4b 22 |ting TAP|EIO.DCK"|
|00001790| 0a 24 20 63 72 65 61 74 | 65 20 54 41 50 45 49 4f |.$ creat|e TAPEIO|
|000017a0| 2e 44 43 4b 0a 24 20 64 | 65 63 6b 0a 63 0a 63 20 |.DCK.$ d|eck.c.c |
|000017b0| 70 61 72 61 6d 65 74 65 | 72 73 3a 0a 63 20 20 20 |paramete|rs:.c |
|000017c0| 62 6c 6f 63 6b 6c 65 6e | 20 69 73 20 74 68 65 20 |blocklen| is the |
|000017d0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 75 6e 69 74 |size of |the unit|
|000017e0| 73 20 74 61 72 20 77 6f | 72 6b 73 20 77 69 74 68 |s tar wo|rks with|
|000017f0| 0a 63 20 20 20 73 61 76 | 65 62 6c 6f 63 6b 73 20 |.c sav|eblocks |
|00001800| 69 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |is the n|umber of|
|00001810| 20 62 6c 6f 63 6b 73 20 | 69 6e 74 6f 20 74 68 65 | blocks |into the|
|00001820| 20 66 69 6c 65 20 73 61 | 76 65 64 20 66 6f 72 20 | file sa|ved for |
|00001830| 61 20 73 65 63 6f 6e 64 | 20 63 68 61 6e 63 65 0a |a second| chance.|
|00001840| 63 20 20 20 6d 61 78 72 | 65 63 6c 20 69 73 20 74 |c maxr|ecl is t|
|00001850| 68 65 20 6d 61 78 69 6d | 75 6d 20 6c 65 6e 67 74 |he maxim|um lengt|
|00001860| 68 20 6f 66 20 72 65 63 | 6f 72 64 20 61 20 74 65 |h of rec|ord a te|
|00001870| 78 74 20 63 61 6e 20 68 | 61 76 65 0a 63 20 20 20 |xt can h|ave.c |
|00001880| 6d 61 78 62 6c 6f 63 6b | 66 61 63 74 6f 72 20 69 |maxblock|factor i|
|00001890| 73 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 62 6c |s the ma|ximum bl|
|000018a0| 6f 63 6b 69 6e 67 20 66 | 61 63 74 6f 72 20 74 68 |ocking f|actor th|
|000018b0| 69 73 20 70 72 6f 67 72 | 61 6d 20 63 61 6e 20 64 |is progr|am can d|
|000018c0| 65 61 6c 20 77 69 74 68 | 0a 63 0a 20 20 20 20 20 |eal with|.c. |
|000018d0| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|000018e0| 6c 65 6e 20 3d 20 35 31 | 32 2c 20 73 61 76 65 62 |len = 51|2, saveb|
|000018f0| 6c 6f 63 6b 73 20 3d 20 | 35 2c 20 6d 61 78 72 65 |locks = |5, maxre|
|00001900| 63 6c 20 3d 20 35 31 32 | 2c 0a 20 20 20 20 20 2d |cl = 512|,. -|
|00001910| 20 20 20 20 6d 61 78 62 | 6c 6f 63 6b 66 61 63 74 | maxb|lockfact|
|00001920| 6f 72 20 3d 20 32 30 0a | 0a 63 20 73 65 63 6f 6e |or = 20.|.c secon|
|00001930| 64 61 72 79 20 70 61 72 | 61 6d 65 74 65 72 73 20 |dary par|ameters |
|00001940| 63 61 6c 63 75 6c 61 74 | 65 64 20 66 72 6f 6d 20 |calculat|ed from |
|00001950| 74 68 6f 73 65 20 61 62 | 6f 76 65 0a 20 20 20 20 |those ab|ove. |
|00001960| 20 20 70 61 72 61 6d 65 | 74 65 72 20 72 65 63 62 | parame|ter recb|
|00001970| 6c 6f 63 6b 73 20 3d 20 | 32 20 2b 20 6d 61 78 72 |locks = |2 + maxr|
|00001980| 65 63 6c 2f 62 6c 6f 63 | 6b 6c 65 6e 2c 0a 20 20 |ecl/bloc|klen,. |
|00001990| 20 20 20 2d 20 20 20 6d | 61 78 62 6c 6f 63 6b 73 | - m|axblocks|
|000019a0| 20 3d 20 6d 61 78 62 6c | 6f 63 6b 66 61 63 74 6f | = maxbl|ockfacto|
|000019b0| 72 20 2b 20 73 61 76 65 | 62 6c 6f 63 6b 73 20 2b |r + save|blocks +|
|000019c0| 20 72 65 63 62 6c 6f 63 | 6b 73 2c 0a 20 20 20 20 | recbloc|ks,. |
|000019d0| 20 2d 20 20 20 6d 61 78 | 6c 65 6e 20 3d 20 62 6c | - max|len = bl|
|000019e0| 6f 63 6b 6c 65 6e 2a 6d | 61 78 62 6c 6f 63 6b 73 |ocklen*m|axblocks|
|000019f0| 0a 0a 63 20 74 68 65 73 | 65 20 61 72 65 20 6e 75 |..c thes|e are nu|
|00001a00| 6d 62 65 72 73 20 66 6f | 72 20 66 6f 72 74 72 61 |mbers fo|r fortra|
|00001a10| 6e 20 75 6e 69 74 73 20 | 74 6f 20 62 65 20 75 73 |n units |to be us|
|00001a20| 65 64 20 66 6f 72 20 76 | 61 72 69 6f 75 73 20 66 |ed for v|arious f|
|00001a30| 69 6c 65 73 0a 20 20 20 | 20 20 20 70 61 72 61 6d |iles. | param|
|00001a40| 65 74 65 72 20 69 6e 75 | 6e 69 74 20 3d 20 31 2c |eter inu|nit = 1,|
|00001a50| 20 6f 75 74 75 6e 69 74 | 20 3d 20 32 2c 20 6c 69 | outunit| = 2, li|
|00001a60| 73 74 75 6e 69 74 20 3d | 20 33 2c 20 6e 61 6d 65 |stunit =| 3, name|
|00001a70| 75 6e 69 74 20 3d 20 34 | 0a 0a 63 0a 63 20 76 61 |unit = 4|..c.c va|
|00001a80| 72 69 61 62 6c 65 73 3a | 0a 63 0a 63 20 69 2f 6f |riables:|.c.c i/o|
|00001a90| 20 63 6f 6e 74 72 6f 6c | 20 73 74 75 66 66 0a 20 | control| stuff. |
|00001aa0| 20 20 20 20 20 69 6e 74 | 65 67 65 72 2a 32 20 63 | int|eger*2 c|
|00001ab0| 68 61 6e 6e 65 6c 0a 20 | 20 20 20 20 20 6c 6f 67 |hannel. | log|
|00001ac0| 69 63 61 6c 2a 31 20 74 | 61 70 65 5f 66 69 6c 65 |ical*1 t|ape_file|
|00001ad0| 0a 0a 63 20 74 68 69 73 | 20 69 73 20 74 68 65 20 |..c this| is the |
|00001ae0| 62 75 66 66 65 72 20 72 | 65 63 6f 72 64 73 20 67 |buffer r|ecords g|
|00001af0| 65 74 20 72 65 61 64 20 | 69 6e 74 6f 0a 20 20 20 |et read |into. |
|00001b00| 20 20 20 63 68 61 72 61 | 63 74 65 72 20 62 75 66 | chara|cter buf|
|00001b10| 66 65 72 2a 28 20 6d 61 | 78 6c 65 6e 20 29 2c 20 |fer*( ma|xlen ), |
|00001b20| 62 6c 6f 63 6b 28 20 6d | 61 78 62 6c 6f 63 6b 73 |block( m|axblocks|
|00001b30| 20 29 2a 28 20 62 6c 6f | 63 6b 6c 65 6e 20 29 0a | )*( blo|cklen ).|
|00001b40| 20 20 20 20 20 20 65 71 | 75 69 76 61 6c 65 6e 63 | eq|uivalenc|
|00001b50| 65 20 28 20 62 75 66 66 | 65 72 2c 20 62 6c 6f 63 |e ( buff|er, bloc|
|00001b60| 6b 20 29 0a 0a 63 20 63 | 6f 6e 74 72 6f 6c 20 69 |k )..c c|ontrol i|
|00001b70| 6e 66 6f 20 66 6f 72 20 | 74 68 65 20 62 75 66 66 |nfo for |the buff|
|00001b80| 65 72 0a 20 20 20 20 20 | 20 69 6e 74 65 67 65 72 |er. | integer|
|00001b90| 2a 32 20 75 73 69 6e 67 | 2c 20 75 73 69 6e 67 32 |*2 using|, using2|
|00001ba0| 2c 20 63 75 72 72 0a 20 | 20 20 20 20 20 6c 6f 67 |, curr. | log|
|00001bb0| 69 63 61 6c 2a 31 20 65 | 6f 66 0a 0a 0a 20 20 20 |ical*1 e|of... |
|00001bc0| 20 20 20 63 6f 6d 6d 6f | 6e 20 2f 63 6f 6d 6d 6f | commo|n /commo|
|00001bd0| 6e 62 75 66 2f 20 62 75 | 66 66 65 72 0a 20 20 20 |nbuf/ bu|ffer. |
|00001be0| 20 20 20 63 6f 6d 6d 6f | 6e 20 2f 63 6f 6d 6d 6f | commo|n /commo|
|00001bf0| 6e 69 6e 74 73 2f 20 75 | 73 69 6e 67 2c 20 75 73 |nints/ u|sing, us|
|00001c00| 69 6e 67 32 2c 20 63 75 | 72 72 2c 20 65 6f 66 2c |ing2, cu|rr, eof,|
|00001c10| 20 74 61 70 65 5f 66 69 | 6c 65 2c 20 63 68 61 6e | tape_fi|le, chan|
|00001c20| 6e 65 6c 0a 24 20 65 6f | 64 0a 24 21 0a 24 20 77 |nel.$ eo|d.$!.$ w|
|00001c30| 72 69 74 65 20 73 79 73 | 24 6f 75 74 70 75 74 20 |rite sys|$output |
|00001c40| 22 63 72 65 61 74 69 6e | 67 20 54 41 50 45 49 4f |"creatin|g TAPEIO|
|00001c50| 2e 46 4f 52 22 0a 24 20 | 63 72 65 61 74 65 20 54 |.FOR".$ |create T|
|00001c60| 41 50 45 49 4f 2e 46 4f | 52 0a 24 20 64 65 63 6b |APEIO.FO|R.$ deck|
|00001c70| 0a 63 0a 63 20 74 68 69 | 73 20 72 6f 75 74 69 6e |.c.c thi|s routin|
|00001c80| 65 20 61 63 63 65 73 73 | 65 73 2c 20 63 68 65 63 |e access|es, chec|
|00001c90| 6b 73 2c 20 61 6e 64 20 | 72 65 77 69 6e 64 73 20 |ks, and |rewinds |
|00001ca0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 74 61 |the spec|ified ta|
|00001cb0| 70 65 20 28 6f 72 20 66 | 69 6c 65 2c 0a 63 20 69 |pe (or f|ile,.c i|
|00001cc0| 66 20 74 61 70 65 5f 66 | 69 6c 65 20 69 73 20 74 |f tape_f|ile is t|
|00001cd0| 72 75 65 2e 0a 63 0a 20 | 20 20 20 20 20 73 75 62 |rue..c. | sub|
|00001ce0| 72 6f 75 74 69 6e 65 20 | 6f 70 65 6e 5f 74 61 70 |routine |open_tap|
|00001cf0| 65 28 20 6e 61 6d 65 20 | 29 0a 0a 20 20 20 20 20 |e( name |).. |
|00001d00| 20 69 6e 63 6c 75 64 65 | 20 27 74 61 70 65 69 6f | include| 'tapeio|
|00001d10| 2e 64 63 6b 2f 6c 69 73 | 74 27 0a 20 20 20 20 20 |.dck/lis|t'. |
|00001d20| 20 69 6e 63 6c 75 64 65 | 20 27 28 24 69 6f 64 65 | include| '($iode|
|00001d30| 66 29 2f 6e 6f 6c 69 73 | 74 27 0a 20 20 20 20 20 |f)/nolis|t'. |
|00001d40| 20 69 6e 63 6c 75 64 65 | 20 27 28 24 64 76 69 64 | include| '($dvid|
|00001d50| 65 66 29 2f 6e 6f 6c 69 | 73 74 27 0a 20 20 20 20 |ef)/noli|st'. |
|00001d60| 20 20 69 6e 63 6c 75 64 | 65 20 27 28 24 64 65 76 | includ|e '($dev|
|00001d70| 64 65 66 29 2f 6e 6f 6c | 69 73 74 27 0a 20 20 20 |def)/nol|ist'. |
|00001d80| 20 20 20 63 68 61 72 61 | 63 74 65 72 2a 28 2a 29 | chara|cter*(*)|
|00001d90| 20 6e 61 6d 65 0a 0a 20 | 20 20 20 20 20 69 6e 74 | name.. | int|
|00001da0| 65 67 65 72 2a 32 20 69 | 6f 73 62 28 20 32 20 29 |eger*2 i|osb( 2 )|
|00001db0| 2c 20 64 65 76 72 65 71 | 5f 77 28 20 32 20 29 0a |, devreq|_w( 2 ).|
|00001dc0| 20 20 20 20 20 20 69 6e | 74 65 67 65 72 2a 34 20 | in|teger*4 |
|00001dd0| 73 74 61 74 2c 20 64 65 | 76 72 65 71 28 20 34 20 |stat, de|vreq( 4 |
|00001de0| 29 2c 20 64 65 76 63 68 | 61 72 2c 20 73 79 73 24 |), devch|ar, sys$|
|00001df0| 61 73 73 69 67 6e 2c 20 | 73 79 73 24 71 69 6f 77 |assign, |sys$qiow|
|00001e00| 2c 0a 20 20 20 20 20 2d | 20 20 20 20 73 79 73 24 |,. -| sys$|
|00001e10| 67 65 74 64 76 69 0a 0a | 20 20 20 20 20 20 65 71 |getdvi..| eq|
|00001e20| 75 69 76 61 6c 65 6e 63 | 65 20 28 20 64 65 76 72 |uivalenc|e ( devr|
|00001e30| 65 71 2c 20 64 65 76 72 | 65 71 5f 77 20 29 0a 20 |eq, devr|eq_w ). |
|00001e40| 20 20 20 20 20 64 61 74 | 61 20 64 65 76 72 65 71 | dat|a devreq|
|00001e50| 5f 77 2c 20 64 65 76 72 | 65 71 28 20 33 20 29 2c |_w, devr|eq( 3 ),|
|00001e60| 20 64 65 76 72 65 71 28 | 20 34 20 29 0a 20 20 20 | devreq(| 4 ). |
|00001e70| 20 20 2d 20 20 20 20 2f | 20 34 2c 20 64 76 69 24 | - /| 4, dvi$|
|00001e80| 5f 64 65 76 63 68 61 72 | 2c 20 30 2c 20 30 20 2f |_devchar|, 0, 0 /|
|00001e90| 0a 0a 20 20 20 20 20 20 | 69 66 20 28 20 74 61 70 |.. |if ( tap|
|00001ea0| 65 5f 66 69 6c 65 20 29 | 20 74 68 65 6e 0a 20 20 |e_file )| then. |
|00001eb0| 20 20 20 20 20 20 20 73 | 74 61 74 20 3d 20 73 79 | s|tat = sy|
|00001ec0| 73 24 61 73 73 69 67 6e | 28 20 6e 61 6d 65 2c 20 |s$assign|( name, |
|00001ed0| 63 68 61 6e 6e 65 6c 2c | 2c 20 29 0a 20 20 20 20 |channel,|, ). |
|00001ee0| 20 20 20 20 20 69 66 20 | 28 20 2e 6e 6f 74 2e 20 | if |( .not. |
|00001ef0| 73 74 61 74 20 29 20 67 | 6f 74 6f 20 39 30 30 0a |stat ) g|oto 900.|
|00001f00| 20 20 20 20 20 20 20 20 | 20 64 65 76 72 65 71 28 | | devreq(|
|00001f10| 20 32 20 29 20 3d 20 25 | 6c 6f 63 28 20 64 65 76 | 2 ) = %|loc( dev|
|00001f20| 63 68 61 72 20 29 0a 20 | 20 20 20 20 20 20 20 20 |char ). | |
|00001f30| 73 74 61 74 20 3d 20 73 | 79 73 24 67 65 74 64 76 |stat = s|ys$getdv|
|00001f40| 69 28 20 2c 20 25 76 61 | 6c 28 20 63 68 61 6e 6e |i( , %va|l( chann|
|00001f50| 65 6c 20 29 2c 2c 20 64 | 65 76 72 65 71 2c 20 69 |el ),, d|evreq, i|
|00001f60| 6f 73 62 2c 2c 2c 20 29 | 0a 20 20 20 20 20 20 20 |osb,,, )|. |
|00001f70| 20 20 69 66 20 28 20 2e | 6e 6f 74 2e 20 73 74 61 | if ( .|not. sta|
|00001f80| 74 20 29 20 67 6f 74 6f | 20 39 30 30 0a 20 20 20 |t ) goto| 900. |
|00001f90| 20 20 20 20 20 20 73 74 | 61 74 20 3d 20 69 6f 73 | st|at = ios|
|00001fa0| 62 28 20 31 20 29 0a 20 | 20 20 20 20 20 20 20 20 |b( 1 ). | |
|00001fb0| 69 66 20 28 20 2e 6e 6f | 74 2e 20 73 74 61 74 20 |if ( .no|t. stat |
|00001fc0| 29 20 67 6f 74 6f 20 39 | 30 30 0a 20 20 20 20 20 |) goto 9|00. |
|00001fd0| 20 20 20 20 69 66 20 28 | 20 2e 6e 6f 74 2e 20 62 | if (| .not. b|
|00001fe0| 74 65 73 74 28 20 64 65 | 76 63 68 61 72 2c 20 64 |test( de|vchar, d|
|00001ff0| 65 76 24 76 5f 61 76 6c | 20 29 29 20 67 6f 74 6f |ev$v_avl| )) goto|
|00002000| 20 39 31 30 0a 20 20 20 | 20 20 20 20 20 20 69 66 | 910. | if|
|00002010| 20 28 20 2e 6e 6f 74 2e | 20 62 74 65 73 74 28 20 | ( .not.| btest( |
|00002020| 64 65 76 63 68 61 72 2c | 20 64 65 76 24 76 5f 66 |devchar,| dev$v_f|
|00002030| 6f 72 20 29 29 20 67 6f | 74 6f 20 39 32 30 0a 20 |or )) go|to 920. |
|00002040| 20 20 20 20 20 20 20 20 | 73 74 61 74 20 3d 20 73 | |stat = s|
|00002050| 79 73 24 71 69 6f 77 28 | 20 2c 20 25 76 61 6c 28 |ys$qiow(| , %val(|
|00002060| 20 63 68 61 6e 6e 65 6c | 20 29 2c 20 25 76 61 6c | channel| ), %val|
|00002070| 28 20 69 6f 24 5f 72 65 | 77 69 6e 64 20 29 2c 0a |( io$_re|wind ),.|
|00002080| 20 20 20 20 20 2d 20 20 | 20 20 20 20 20 69 6f 73 | - | ios|
|00002090| 62 2c 2c 2c 2c 2c 2c 2c | 2c 20 29 0a 20 20 20 20 |b,,,,,,,|, ). |
|000020a0| 20 20 20 20 20 69 66 20 | 28 20 2e 6e 6f 74 2e 20 | if |( .not. |
|000020b0| 73 74 61 74 20 29 20 67 | 6f 74 6f 20 39 33 30 0a |stat ) g|oto 930.|
|000020c0| 20 20 20 20 20 20 20 20 | 20 73 74 61 74 20 3d 20 | | stat = |
|000020d0| 69 6f 73 62 28 20 31 20 | 29 0a 20 20 20 20 20 20 |iosb( 1 |). |
|000020e0| 20 20 20 69 66 20 28 20 | 2e 6e 6f 74 2e 20 73 74 | if ( |.not. st|
|000020f0| 61 74 20 29 20 67 6f 74 | 6f 20 39 33 30 0a 20 20 |at ) got|o 930. |
|00002100| 20 20 20 20 65 6c 73 65 | 0a 20 20 20 20 20 20 20 | else|. |
|00002110| 20 20 6f 70 65 6e 28 20 | 69 6e 75 6e 69 74 2c 20 | open( |inunit, |
|00002120| 65 72 72 3d 39 35 30 2c | 20 6e 61 6d 65 3d 6e 61 |err=950,| name=na|
|00002130| 6d 65 2c 0a 20 20 20 20 | 20 2d 20 20 20 20 20 20 |me,. | - |
|00002140| 20 74 79 70 65 3d 27 6f | 6c 64 27 2c 20 72 65 61 | type='o|ld', rea|
|00002150| 64 6f 6e 6c 79 20 29 0a | 20 20 20 20 20 20 65 6e |donly ).| en|
|00002160| 64 20 69 66 0a 0a 20 20 | 20 20 20 20 72 65 74 75 |d if.. | retu|
|00002170| 72 6e 0a 0a 63 0a 63 20 | 66 61 74 61 6c 20 65 72 |rn..c.c |fatal er|
|00002180| 72 6f 72 73 0a 63 0a 20 | 20 39 30 30 20 74 79 70 |rors.c. | 900 typ|
|00002190| 65 20 2a 2c 20 27 45 72 | 72 6f 72 20 61 63 63 65 |e *, 'Er|ror acce|
|000021a0| 73 73 69 6e 67 20 74 61 | 70 65 2c 20 27 2c 20 6e |ssing ta|pe, ', n|
|000021b0| 61 6d 65 0a 20 20 20 20 | 20 20 63 61 6c 6c 20 65 |ame. | call e|
|000021c0| 78 69 74 28 20 73 74 61 | 74 20 29 0a 20 20 39 31 |xit( sta|t ). 91|
|000021d0| 30 20 74 79 70 65 20 2a | 2c 20 27 54 61 70 65 20 |0 type *|, 'Tape |
|000021e0| 6f 66 66 6c 69 6e 65 20 | 6f 72 20 6e 6f 74 20 61 |offline |or not a|
|000021f0| 76 61 69 6c 61 62 6c 65 | 2e 27 0a 20 20 20 20 20 |vailable|.'. |
|00002200| 20 63 61 6c 6c 20 65 78 | 69 74 0a 20 20 39 32 30 | call ex|it. 920|
|00002210| 20 74 79 70 65 20 2a 2c | 20 27 54 61 70 65 20 6d | type *,| 'Tape m|
|00002220| 75 73 74 20 62 65 20 6d | 6f 75 6e 74 65 64 20 2f |ust be m|ounted /|
|00002230| 66 6f 72 65 69 67 6e 2e | 27 0a 20 20 20 20 20 20 |foreign.|'. |
|00002240| 63 61 6c 6c 20 65 78 69 | 74 0a 20 20 39 33 30 20 |call exi|t. 930 |
|00002250| 74 79 70 65 20 2a 2c 20 | 27 45 72 72 6f 72 20 72 |type *, |'Error r|
|00002260| 65 77 69 6e 64 69 6e 67 | 20 74 61 70 65 2e 27 0a |ewinding| tape.'.|
|00002270| 20 20 20 20 20 20 63 61 | 6c 6c 20 65 78 69 74 28 | ca|ll exit(|
|00002280| 20 73 74 61 74 20 29 0a | 0a 20 20 39 35 30 20 74 | stat ).|. 950 t|
|00002290| 79 70 65 20 2a 2c 20 27 | 45 72 72 6f 72 20 6f 70 |ype *, '|Error op|
|000022a0| 65 6e 69 6e 67 20 69 6e | 70 75 74 20 66 69 6c 65 |ening in|put file|
|000022b0| 2c 20 27 2c 20 6e 61 6d | 65 0a 20 20 20 20 20 20 |, ', nam|e. |
|000022c0| 63 61 6c 6c 20 65 78 69 | 74 0a 0a 20 20 20 20 20 |call exi|t.. |
|000022d0| 20 65 6e 64 0a 0a 63 0a | 63 20 74 68 69 73 20 72 | end..c.|c this r|
|000022e0| 6f 75 74 69 6e 65 20 6d | 61 6b 65 73 20 73 75 72 |outine m|akes sur|
|000022f0| 65 20 74 68 65 20 6e 65 | 78 74 20 62 6c 6f 63 6b |e the ne|xt block|
|00002300| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 2c 20 72 | is avai|lable, r|
|00002310| 65 61 64 69 6e 67 20 69 | 74 20 66 72 6f 6d 0a 63 |eading i|t from.c|
|00002320| 20 74 61 70 65 20 69 66 | 20 6e 65 63 65 73 73 61 | tape if| necessa|
|00002330| 72 79 2e 0a 63 0a 20 20 | 20 20 20 20 73 75 62 72 |ry..c. | subr|
|00002340| 6f 75 74 69 6e 65 20 6e | 65 78 74 5f 62 6c 6f 63 |outine n|ext_bloc|
|00002350| 6b 0a 20 20 20 20 20 20 | 69 6e 63 6c 75 64 65 20 |k. |include |
|00002360| 27 74 61 70 65 69 6f 2e | 64 63 6b 27 0a 20 20 20 |'tapeio.|dck'. |
|00002370| 20 20 20 69 6e 63 6c 75 | 64 65 20 27 28 24 69 6f | inclu|de '($io|
|00002380| 64 65 66 29 2f 6e 6f 6c | 69 73 74 27 0a 20 20 20 |def)/nol|ist'. |
|00002390| 20 20 20 69 6e 74 65 67 | 65 72 2a 32 20 62 6c 65 | integ|er*2 ble|
|000023a0| 6e 2c 20 75 2c 20 69 2c | 20 69 6f 73 62 28 20 34 |n, u, i,| iosb( 4|
|000023b0| 20 29 0a 20 20 20 20 20 | 20 69 6e 74 65 67 65 72 | ). | integer|
|000023c0| 2a 34 20 73 74 61 74 2c | 20 73 79 73 24 71 69 6f |*4 stat,| sys$qio|
|000023d0| 77 0a 20 20 20 20 20 20 | 64 61 74 61 20 63 75 72 |w. |data cur|
|000023e0| 72 2c 20 62 6c 65 6e 20 | 2f 20 30 2c 20 30 20 2f |r, blen |/ 0, 0 /|
|000023f0| 0a 0a 20 20 20 20 20 20 | 65 6f 66 20 3d 20 2e 66 |.. |eof = .f|
|00002400| 61 6c 73 65 2e 0a 20 20 | 20 20 20 20 63 75 72 72 |alse.. | curr|
|00002410| 20 3d 20 63 75 72 72 20 | 2b 20 31 0a 20 20 20 20 | = curr |+ 1. |
|00002420| 20 20 69 66 20 28 20 63 | 75 72 72 20 2e 6c 65 2e | if ( c|urr .le.|
|00002430| 20 62 6c 65 6e 20 2f 20 | 62 6c 6f 63 6b 6c 65 6e | blen / |blocklen|
|00002440| 20 29 20 72 65 74 75 72 | 6e 0a 0a 20 20 20 20 20 | ) retur|n.. |
|00002450| 20 69 66 20 28 20 75 73 | 69 6e 67 32 20 2e 6c 65 | if ( us|ing2 .le|
|00002460| 2e 20 30 20 29 20 74 68 | 65 6e 0a 20 20 20 20 20 |. 0 ) th|en. |
|00002470| 20 20 20 20 75 20 3d 20 | 75 73 69 6e 67 0a 20 20 | u = |using. |
|00002480| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 20 75 73 | else| if ( us|
|00002490| 69 6e 67 20 2e 6c 65 2e | 20 30 20 29 20 74 68 65 |ing .le.| 0 ) the|
|000024a0| 6e 0a 20 20 20 20 20 20 | 20 20 20 75 20 3d 20 75 |n. | u = u|
|000024b0| 73 69 6e 67 32 0a 20 20 | 20 20 20 20 65 6c 73 65 |sing2. | else|
|000024c0| 0a 20 20 20 20 20 20 20 | 20 20 75 20 3d 20 6d 69 |. | u = mi|
|000024d0| 6e 28 20 75 73 69 6e 67 | 2c 20 75 73 69 6e 67 32 |n( using|, using2|
|000024e0| 20 29 0a 20 20 20 20 20 | 20 65 6e 64 20 69 66 0a | ). | end if.|
|000024f0| 0a 20 20 20 20 20 20 69 | 66 20 28 20 75 20 2e 67 |. i|f ( u .g|
|00002500| 74 2e 20 62 6c 65 6e 20 | 2f 20 62 6c 6f 63 6b 6c |t. blen |/ blockl|
|00002510| 65 6e 20 29 20 74 68 65 | 6e 0a 20 20 20 20 20 20 |en ) the|n. |
|00002520| 20 20 20 74 79 70 65 20 | 2a 2c 20 27 49 6e 74 65 | type |*, 'Inte|
|00002530| 72 6e 61 6c 20 65 72 72 | 6f 72 2e 20 20 43 61 6c |rnal err|or. Cal|
|00002540| 6c 20 74 68 65 20 64 65 | 62 75 67 67 65 72 2e 27 |l the de|bugger.'|
|00002550| 0a 20 20 20 20 20 20 20 | 20 20 63 61 6c 6c 20 65 |. | call e|
|00002560| 78 69 74 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |xit. | else i|
|00002570| 66 20 28 20 75 20 2e 67 | 74 2e 20 31 20 29 20 74 |f ( u .g|t. 1 ) t|
|00002580| 68 65 6e 0a 20 20 20 20 | 20 20 20 20 20 62 75 66 |hen. | buf|
|00002590| 66 65 72 28 20 31 20 3a | 20 62 6c 65 6e 20 2d 20 |fer( 1 :| blen - |
|000025a0| 62 6c 6f 63 6b 6c 65 6e | 2a 28 75 2d 31 29 29 20 |blocklen|*(u-1)) |
|000025b0| 3d 0a 20 20 20 20 20 2d | 20 20 20 20 20 20 20 62 |=. -| b|
|000025c0| 75 66 66 65 72 28 20 31 | 2b 62 6c 6f 63 6b 6c 65 |uffer( 1|+blockle|
|000025d0| 6e 2a 28 75 2d 31 29 20 | 3a 20 62 6c 65 6e 20 29 |n*(u-1) |: blen )|
|000025e0| 0a 20 20 20 20 20 20 20 | 20 20 62 6c 65 6e 20 3d |. | blen =|
|000025f0| 20 62 6c 65 6e 20 2d 20 | 62 6c 6f 63 6b 6c 65 6e | blen - |blocklen|
|00002600| 2a 28 75 2d 31 29 0a 20 | 20 20 20 20 20 20 20 20 |*(u-1). | |
|00002610| 63 75 72 72 20 3d 20 63 | 75 72 72 20 2d 20 75 20 |curr = c|urr - u |
|00002620| 2b 20 31 0a 20 20 20 20 | 20 20 20 20 20 75 73 69 |+ 1. | usi|
|00002630| 6e 67 20 3d 20 75 73 69 | 6e 67 20 2d 20 75 20 2b |ng = usi|ng - u +|
|00002640| 20 31 0a 20 20 20 20 20 | 20 20 20 20 75 73 69 6e | 1. | usin|
|00002650| 67 32 20 3d 20 75 73 69 | 6e 67 32 20 2d 20 75 20 |g2 = usi|ng2 - u |
|00002660| 2b 20 31 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |+ 1. | else i|
|00002670| 66 20 28 20 75 20 2e 6c | 74 2e 20 31 20 29 20 74 |f ( u .l|t. 1 ) t|
|00002680| 68 65 6e 0a 20 20 20 20 | 20 20 20 20 20 62 6c 65 |hen. | ble|
|00002690| 6e 20 3d 20 30 0a 20 20 | 20 20 20 20 20 20 20 63 |n = 0. | c|
|000026a0| 75 72 72 20 3d 20 31 0a | 20 20 20 20 20 20 65 6e |urr = 1.| en|
|000026b0| 64 20 69 66 0a 0a 20 20 | 20 20 20 20 64 6f 20 77 |d if.. | do w|
|000026c0| 68 69 6c 65 20 28 20 63 | 75 72 72 20 2e 67 74 2e |hile ( c|urr .gt.|
|000026d0| 20 62 6c 65 6e 20 2f 20 | 62 6c 6f 63 6b 6c 65 6e | blen / |blocklen|
|000026e0| 20 29 0a 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | ). | if (|
|000026f0| 20 74 61 70 65 5f 66 69 | 6c 65 20 29 20 74 68 65 | tape_fi|le ) the|
|00002700| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 73 74 |n. | st|
|00002710| 61 74 20 3d 20 73 79 73 | 24 71 69 6f 77 28 20 2c |at = sys|$qiow( ,|
|00002720| 20 25 76 61 6c 28 20 63 | 68 61 6e 6e 65 6c 20 29 | %val( c|hannel )|
|00002730| 2c 20 25 76 61 6c 28 20 | 69 6f 24 5f 72 65 61 64 |, %val( |io$_read|
|00002740| 6c 62 6c 6b 20 29 2c 0a | 20 20 20 20 20 2d 20 20 |lblk ),.| - |
|00002750| 20 20 20 20 20 20 20 20 | 69 6f 73 62 2c 2c 2c 20 | |iosb,,, |
|00002760| 25 72 65 66 28 20 62 75 | 66 66 65 72 28 20 62 6c |%ref( bu|ffer( bl|
|00002770| 65 6e 2b 31 3a 20 29 29 | 2c 20 25 76 61 6c 28 20 |en+1: ))|, %val( |
|00002780| 6d 61 78 6c 65 6e 2d 62 | 6c 65 6e 20 29 0a 20 20 |maxlen-b|len ). |
|00002790| 20 20 20 2d 20 20 20 20 | 20 20 20 20 20 20 2c 2c | - | ,,|
|000027a0| 2c 2c 20 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |,, ). | |
|000027b0| 20 69 66 20 28 20 2e 6e | 6f 74 2e 20 73 74 61 74 | if ( .n|ot. stat|
|000027c0| 20 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 | ) then.| |
|000027d0| 20 20 20 20 20 20 20 74 | 79 70 65 20 2a 2c 20 27 | t|ype *, '|
|000027e0| 45 72 72 6f 72 20 72 65 | 61 64 69 6e 67 20 66 72 |Error re|ading fr|
|000027f0| 6f 6d 20 74 61 70 65 27 | 0a 20 20 20 20 20 20 20 |om tape'|. |
|00002800| 20 20 20 20 20 20 20 20 | 63 61 6c 6c 20 65 78 69 | |call exi|
|00002810| 74 28 20 73 74 61 74 20 | 29 0a 20 20 20 20 20 20 |t( stat |). |
|00002820| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 20 | el|se if ( |
|00002830| 2e 6e 6f 74 2e 20 69 6f | 73 62 28 20 31 20 29 29 |.not. io|sb( 1 ))|
|00002840| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00002850| 20 20 20 20 20 74 79 70 | 65 20 2a 2c 20 27 45 72 | typ|e *, 'Er|
|00002860| 72 6f 72 20 72 65 61 64 | 69 6e 67 20 66 72 6f 6d |ror read|ing from|
|00002870| 20 74 61 70 65 27 0a 20 | 20 20 20 20 20 20 20 20 | tape'. | |
|00002880| 20 20 20 20 20 20 63 61 | 6c 6c 20 65 78 69 74 28 | ca|ll exit(|
|00002890| 20 69 6f 73 62 28 20 31 | 20 29 29 0a 20 20 20 20 | iosb( 1| )). |
|000028a0| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 | |else if |
|000028b0| 28 20 69 6f 73 62 28 20 | 32 20 29 20 2e 65 71 2e |( iosb( |2 ) .eq.|
|000028c0| 20 30 20 29 20 74 68 65 | 6e 0a 20 20 20 20 20 20 | 0 ) the|n. |
|000028d0| 20 20 20 20 20 20 20 20 | 20 67 6f 74 6f 20 39 39 | | goto 99|
|000028e0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6e 64 |. | end|
|000028f0| 69 66 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |if. | b|
|00002900| 6c 65 6e 20 3d 20 62 6c | 65 6e 20 2b 20 69 6f 73 |len = bl|en + ios|
|00002910| 62 28 20 32 20 29 0a 20 | 20 20 20 20 20 20 20 20 |b( 2 ). | |
|00002920| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 20 20 20 |else. | |
|00002930| 20 72 65 61 64 28 20 69 | 6e 75 6e 69 74 2c 20 31 | read( i|nunit, 1|
|00002940| 30 2c 20 65 6e 64 3d 39 | 39 20 29 20 69 2c 20 62 |0, end=9|9 ) i, b|
|00002950| 75 66 66 65 72 28 20 62 | 6c 65 6e 2b 31 3a 20 29 |uffer( b|len+1: )|
|00002960| 0a 20 20 20 31 30 20 20 | 20 20 20 20 20 66 6f 72 |. 10 | for|
|00002970| 6d 61 74 28 20 71 2c 20 | 61 20 29 0a 20 20 20 20 |mat( q, |a ). |
|00002980| 20 20 20 20 20 20 20 20 | 62 6c 65 6e 20 3d 20 62 | |blen = b|
|00002990| 6c 65 6e 20 2b 20 69 0a | 20 20 20 20 20 20 20 20 |len + i.| |
|000029a0| 20 65 6e 64 20 69 66 0a | 20 20 20 20 20 20 20 20 | end if.| |
|000029b0| 20 69 66 20 28 20 62 6c | 65 6e 20 2e 67 74 2e 20 | if ( bl|en .gt. |
|000029c0| 6d 61 78 6c 65 6e 20 29 | 20 74 68 65 6e 0a 20 20 |maxlen )| then. |
|000029d0| 20 20 20 20 20 20 20 20 | 20 20 74 79 70 65 20 2a | | type *|
|000029e0| 2c 20 27 42 6c 6f 63 6b | 69 6e 67 20 66 61 63 74 |, 'Block|ing fact|
|000029f0| 6f 72 20 74 6f 6f 20 6c | 61 72 67 65 2e 27 0a 20 |or too l|arge.'. |
|00002a00| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 6c 6c 20 | | call |
|00002a10| 65 78 69 74 0a 20 20 20 | 20 20 20 20 20 20 65 6e |exit. | en|
|00002a20| 64 20 69 66 0a 20 20 20 | 20 20 20 65 6e 64 20 64 |d if. | end d|
|00002a30| 6f 0a 20 20 20 20 20 20 | 72 65 74 75 72 6e 0a 0a |o. |return..|
|00002a40| 39 39 20 20 20 20 63 75 | 72 72 20 3d 20 63 75 72 |99 cu|rr = cur|
|00002a50| 72 20 2d 20 31 0a 20 20 | 20 20 20 20 65 6f 66 20 |r - 1. | eof |
|00002a60| 3d 20 2e 74 72 75 65 2e | 0a 20 20 20 20 20 20 72 |= .true.|. r|
|00002a70| 65 74 75 72 6e 0a 20 20 | 20 20 20 20 65 6e 64 0a |eturn. | end.|
|00002a80| 24 20 65 6f 64 0a 24 21 | 0a 24 20 77 72 69 74 65 |$ eod.$!|.$ write|
|00002a90| 20 73 79 73 24 6f 75 74 | 70 75 74 20 22 63 72 65 | sys$out|put "cre|
|00002aa0| 61 74 69 6e 67 20 54 41 | 52 2e 43 4c 44 22 0a 24 |ating TA|R.CLD".$|
|00002ab0| 20 63 72 65 61 74 65 20 | 54 41 52 2e 43 4c 44 0a | create |TAR.CLD.|
|00002ac0| 24 20 64 65 63 6b 0a 21 | 2a 2a 2a 2a 2a 2a 2a 2a |$ deck.!|********|
|00002ad0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002ae0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 54 41 |********|******TA|
|00002af0| 52 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |R*******|********|
|00002b00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002b10| 2a 2a 2a 2a 2a 2a 2a 0a | 64 65 66 69 6e 65 20 76 |*******.|define v|
|00002b20| 65 72 62 20 54 41 52 0a | 20 20 20 69 6d 61 67 65 |erb TAR.| image|
|00002b30| 20 64 72 63 30 3a 5b 67 | 6f 72 64 6f 6e 2e 64 65 | drc0:[g|ordon.de|
|00002b40| 63 75 73 2e 74 61 72 5d | 54 41 52 0a 20 20 20 70 |cus.tar]|TAR. p|
|00002b50| 61 72 61 6d 65 74 65 72 | 20 50 31 20 2c 20 6c 61 |arameter| P1 , la|
|00002b60| 62 65 6c 3d 54 41 50 45 | 20 2c 20 70 72 6f 6d 70 |bel=TAPE| , promp|
|00002b70| 74 3d 22 54 61 70 65 20 | 64 72 69 76 65 22 0a 20 |t="Tape |drive". |
|00002b80| 20 20 20 20 20 76 61 6c | 75 65 20 28 72 65 71 75 | val|ue (requ|
|00002b90| 69 72 65 64 2c 74 79 70 | 65 3d 24 69 6e 66 69 6c |ired,typ|e=$infil|
|00002ba0| 65 29 0a 20 20 20 71 75 | 61 6c 69 66 69 65 72 20 |e). qu|alifier |
|00002bb0| 46 49 4c 45 0a 20 20 20 | 71 75 61 6c 69 66 69 65 |FILE. |qualifie|
|00002bc0| 72 20 45 58 54 52 41 43 | 54 0a 20 20 20 71 75 61 |r EXTRAC|T. qua|
|00002bd0| 6c 69 66 69 65 72 20 42 | 49 4e 41 52 59 0a 20 20 |lifier B|INARY. |
|00002be0| 20 71 75 61 6c 69 66 69 | 65 72 20 49 4e 51 55 49 | qualifi|er INQUI|
|00002bf0| 52 45 0a 20 20 20 71 75 | 61 6c 69 66 69 65 72 20 |RE. qu|alifier |
|00002c00| 53 45 43 4f 4e 44 5f 43 | 48 41 4e 43 45 0a 20 20 |SECOND_C|HANCE. |
|00002c10| 20 20 20 20 64 65 66 61 | 75 6c 74 0a 20 20 20 71 | defa|ult. q|
|00002c20| 75 61 6c 69 66 69 65 72 | 20 4e 41 4d 45 53 0a 20 |ualifier| NAMES. |
|00002c30| 20 20 20 20 20 76 61 6c | 75 65 20 28 64 65 66 61 | val|ue (defa|
|00002c40| 75 6c 74 3d 22 73 79 73 | 24 6f 75 74 70 75 74 3a |ult="sys|$output:|
|00002c50| 22 2c 74 79 70 65 3d 24 | 6f 75 74 66 69 6c 65 29 |",type=$|outfile)|
|00002c60| 0a 20 20 20 71 75 61 6c | 69 66 69 65 72 20 4c 49 |. qual|ifier LI|
|00002c70| 53 54 0a 20 20 20 20 20 | 20 76 61 6c 75 65 20 28 |ST. | value (|
|00002c80| 64 65 66 61 75 6c 74 3d | 22 73 79 73 24 6f 75 74 |default=|"sys$out|
|00002c90| 70 75 74 3a 22 2c 74 79 | 70 65 3d 24 6f 75 74 66 |put:",ty|pe=$outf|
|00002ca0| 69 6c 65 29 0a 20 20 20 | 71 75 61 6c 69 66 69 65 |ile). |qualifie|
|00002cb0| 72 20 56 45 52 42 4f 53 | 45 0a 20 20 20 71 75 61 |r VERBOS|E. qua|
|00002cc0| 6c 69 66 69 65 72 20 46 | 4c 41 54 54 45 4e 0a 20 |lifier F|LATTEN. |
|00002cd0| 20 20 20 20 20 64 65 66 | 61 75 6c 74 0a 24 20 65 | def|ault.$ e|
|00002ce0| 6f 64 0a 24 21 0a 24 20 | 77 72 69 74 65 20 73 79 |od.$!.$ |write sy|
|00002cf0| 73 24 6f 75 74 70 75 74 | 20 22 63 72 65 61 74 69 |s$output| "creati|
|00002d00| 6e 67 20 54 41 52 2e 46 | 4f 52 22 0a 24 20 63 72 |ng TAR.F|OR".$ cr|
|00002d10| 65 61 74 65 20 54 41 52 | 2e 46 4f 52 0a 24 20 64 |eate TAR|.FOR.$ d|
|00002d20| 65 63 6b 0a 63 0a 63 20 | 54 68 69 73 20 69 73 20 |eck.c.c |This is |
|00002d30| 74 61 72 20 66 6f 72 20 | 56 4d 53 2c 20 62 79 20 |tar for |VMS, by |
|00002d40| 47 6f 72 64 6f 6e 20 44 | 61 76 69 73 73 6f 6e 20 |Gordon D|avisson |
|00002d50| 28 67 6f 72 64 6f 6e 40 | 75 77 2d 6a 75 6e 65 29 |(gordon@|uw-june)|
|00002d60| 2e 20 20 49 74 20 69 73 | 0a 63 20 6e 6f 74 20 62 |. It is|.c not b|
|00002d70| 61 73 65 64 20 6f 6e 20 | 61 6e 79 20 6c 69 73 63 |ased on |any lisc|
|00002d80| 65 6e 63 65 64 20 73 6f | 66 74 77 61 72 65 2c 20 |enced so|ftware, |
|00002d90| 61 6e 64 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 6c |and is c|ompletel|
|00002da0| 79 20 69 6e 20 74 68 65 | 0a 63 20 70 75 62 6c 69 |y in the|.c publi|
|00002db0| 63 20 64 6f 6d 61 69 6e | 2e 0a 63 0a 63 20 56 65 |c domain|..c.c Ve|
|00002dc0| 72 73 69 6f 6e 20 31 2e | 30 2c 20 47 6f 72 64 6f |rsion 1.|0, Gordo|
|00002dd0| 6e 20 44 61 76 69 73 73 | 6f 6e 2c 20 4a 75 6c 79 |n Daviss|on, July|
|00002de0| 20 32 34 20 31 39 38 35 | 0a 63 20 72 65 76 69 73 | 24 1985|.c revis|
|00002df0| 65 64 20 62 79 20 47 2e | 44 2e 20 4a 75 6c 79 20 |ed by G.|D. July |
|00002e00| 32 39 20 31 39 38 35 20 | 74 6f 20 75 73 65 20 69 |29 1985 |to use i|
|00002e10| 6f 24 5f 72 65 77 69 6e | 64 20 72 69 67 68 74 20 |o$_rewin|d right |
|00002e20| 61 6e 64 20 6e 6f 74 20 | 61 62 75 73 65 20 72 6d |and not |abuse rm|
|00002e30| 73 24 5f 65 6f 66 0a 63 | 20 72 65 76 69 73 65 64 |s$_eof.c| revised|
|00002e40| 20 62 79 20 47 2e 44 2e | 20 4f 63 74 20 31 37 20 | by G.D.| Oct 17 |
|00002e50| 31 39 38 35 20 74 6f 20 | 6d 61 6b 65 20 73 75 72 |1985 to |make sur|
|00002e60| 65 20 74 61 70 65 20 69 | 73 20 6d 6f 75 6e 74 65 |e tape i|s mounte|
|00002e70| 64 0a 63 0a 20 20 20 20 | 20 20 70 72 6f 67 72 61 |d.c. | progra|
|00002e80| 6d 20 74 61 72 0a 0a 20 | 20 20 20 20 20 70 61 72 |m tar.. | par|
|00002e90| 61 6d 65 74 65 72 20 62 | 65 6c 6c 20 3d 20 63 68 |ameter b|ell = ch|
|00002ea0| 61 72 28 20 37 20 29 2c | 20 6c 66 20 3d 20 63 68 |ar( 7 ),| lf = ch|
|00002eb0| 61 72 28 20 31 30 20 29 | 0a 20 20 20 20 20 20 65 |ar( 10 )|. e|
|00002ec0| 78 74 65 72 6e 61 6c 20 | 63 6c 69 24 5f 70 72 65 |xternal |cli$_pre|
|00002ed0| 73 65 6e 74 2c 20 63 6c | 69 24 5f 6e 65 67 61 74 |sent, cl|i$_negat|
|00002ee0| 65 64 2c 20 63 6c 69 24 | 5f 6c 6f 63 70 72 65 73 |ed, cli$|_locpres|
|00002ef0| 2c 20 63 6c 69 24 5f 6c | 6f 63 6e 65 67 2c 0a 20 |, cli$_l|ocneg,. |
|00002f00| 20 20 20 20 2d 20 20 20 | 20 63 6c 69 24 5f 61 62 | - | cli$_ab|
|00002f10| 73 65 6e 74 2c 20 63 6c | 69 24 5f 64 65 66 61 75 |sent, cl|i$_defau|
|00002f20| 6c 74 65 64 2c 20 63 6c | 69 24 5f 6e 6f 72 6d 61 |lted, cl|i$_norma|
|00002f30| 6c 2c 0a 20 20 20 20 20 | 2d 20 20 20 20 63 6c 69 |l,. |- cli|
|00002f40| 24 5f 63 6f 6d 6d 61 2c | 20 63 6c 69 24 5f 63 6f |$_comma,| cli$_co|
|00002f50| 6e 63 61 74 0a 20 20 20 | 20 20 20 69 6e 63 6c 75 |ncat. | inclu|
|00002f60| 64 65 20 27 74 61 70 65 | 69 6f 2e 64 63 6b 2f 6c |de 'tape|io.dck/l|
|00002f70| 69 73 74 27 0a 20 20 20 | 20 20 20 63 68 61 72 61 |ist'. | chara|
|00002f80| 63 74 65 72 20 66 6e 61 | 6d 65 2a 31 30 30 2c 20 |cter fna|me*100, |
|00002f90| 6f 75 74 2a 31 32 38 2c | 20 70 73 74 72 2a 39 2c |out*128,| pstr*9,|
|00002fa0| 20 70 72 6f 74 2a 33 2c | 20 6c 69 6e 6b 2a 31 2c | prot*3,| link*1,|
|00002fb0| 20 74 6d 70 2a 31 0a 20 | 20 20 20 20 20 69 6e 74 | tmp*1. | int|
|00002fc0| 65 67 65 72 2a 32 20 69 | 2c 20 6a 2c 20 73 74 61 |eger*2 i|, j, sta|
|00002fd0| 72 74 2c 20 66 69 6e 69 | 73 68 2c 20 66 6c 65 6e |rt, fini|sh, flen|
|00002fe0| 2c 20 6f 6c 65 6e 2c 20 | 66 69 6c 65 73 2c 0a 20 |, olen, |files,. |
|00002ff0| 20 20 20 20 2d 20 20 20 | 20 73 74 75 66 66 31 2c | - | stuff1,|
|00003000| 20 73 74 75 66 66 32 2c | 20 73 74 75 66 66 33 2c | stuff2,| stuff3,|
|00003010| 20 69 6f 73 62 28 20 32 | 20 29 0a 20 20 20 20 20 | iosb( 2| ). |
|00003020| 20 69 6e 74 65 67 65 72 | 2a 34 20 73 69 7a 65 2c | integer|*4 size,|
|00003030| 20 62 6c 6f 63 6b 73 2c | 20 74 69 6d 65 2c 20 73 | blocks,| time, s|
|00003040| 74 61 74 2c 0a 20 20 20 | 20 20 2d 20 20 20 20 63 |tat,. | - c|
|00003050| 6c 69 24 67 65 74 5f 76 | 61 6c 75 65 2c 20 63 6c |li$get_v|alue, cl|
|00003060| 69 24 70 72 65 73 65 6e | 74 2c 20 73 79 73 24 61 |i$presen|t, sys$a|
|00003070| 73 73 69 67 6e 2c 20 73 | 79 73 24 71 69 6f 77 0a |ssign, s|ys$qiow.|
|00003080| 20 20 20 20 20 20 6c 6f | 67 69 63 61 6c 2a 31 20 | lo|gical*1 |
|00003090| 6c 69 73 74 69 6e 67 2c | 20 6e 61 6d 69 6e 67 2c |listing,| naming,|
|000030a0| 20 65 78 74 72 61 63 74 | 69 6e 67 2c 20 62 69 6e | extract|ing, bin|
|000030b0| 61 72 79 2c 20 69 6e 71 | 75 69 72 69 6e 67 2c 0a |ary, inq|uiring,.|
|000030c0| 20 20 20 20 20 2d 20 20 | 20 20 76 65 72 62 6f 73 | - | verbos|
|000030d0| 65 2c 20 73 65 63 6f 6e | 64 5f 63 68 61 6e 63 65 |e, secon|d_chance|
|000030e0| 2c 20 66 6c 61 74 74 65 | 6e 2c 20 61 62 73 65 6e |, flatte|n, absen|
|000030f0| 74 0a 0a 20 20 20 20 20 | 20 61 62 73 65 6e 74 28 |t.. | absent(|
|00003100| 20 73 74 61 74 20 29 20 | 3d 20 28 20 73 74 61 74 | stat ) |= ( stat|
|00003110| 20 2e 65 71 2e 20 25 6c | 6f 63 28 20 63 6c 69 24 | .eq. %l|oc( cli$|
|00003120| 5f 61 62 73 65 6e 74 20 | 29 20 2e 6f 72 2e 0a 20 |_absent |) .or.. |
|00003130| 20 20 20 20 2d 20 20 20 | 20 20 20 20 20 20 20 20 | - | |
|00003140| 20 20 20 20 20 20 20 20 | 73 74 61 74 20 2e 65 71 | |stat .eq|
|00003150| 2e 20 25 6c 6f 63 28 20 | 63 6c 69 24 5f 6e 65 67 |. %loc( |cli$_neg|
|00003160| 61 74 65 64 20 29 29 0a | 63 0a 63 20 70 61 72 73 |ated )).|c.c pars|
|00003170| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 0a 63 |e comman|d line.c|
|00003180| 0a 63 20 66 69 6c 65 20 | 2d 2d 20 72 65 61 64 20 |.c file |-- read |
|00003190| 66 72 6f 6d 20 6e 6f 72 | 6d 61 6c 20 66 69 6c 65 |from nor|mal file|
|000031a0| 2c 20 6e 6f 74 20 61 20 | 74 61 70 65 0a 20 20 20 |, not a |tape. |
|000031b0| 20 20 20 73 74 61 74 20 | 3d 20 63 6c 69 24 70 72 | stat |= cli$pr|
|000031c0| 65 73 65 6e 74 28 20 27 | 66 69 6c 65 27 20 29 0a |esent( '|file' ).|
|000031d0| 20 20 20 20 20 20 69 66 | 20 28 20 61 62 73 65 6e | if| ( absen|
|000031e0| 74 28 20 73 74 61 74 20 | 29 29 20 74 68 65 6e 0a |t( stat |)) then.|
|000031f0| 20 20 20 20 20 20 20 20 | 20 74 61 70 65 5f 66 69 | | tape_fi|
|00003200| 6c 65 20 3d 20 2e 74 72 | 75 65 2e 0a 20 20 20 20 |le = .tr|ue.. |
|00003210| 20 20 65 6c 73 65 20 69 | 66 20 28 20 2e 6e 6f 74 | else i|f ( .not|
|00003220| 2e 20 73 74 61 74 20 29 | 20 74 68 65 6e 0a 20 20 |. stat )| then. |
|00003230| 20 20 20 20 20 20 20 67 | 6f 74 6f 20 39 30 30 0a | g|oto 900.|
|00003240| 20 20 20 20 20 20 65 6c | 73 65 0a 20 20 20 20 20 | el|se. |
|00003250| 20 20 20 74 61 70 65 5f | 66 69 6c 65 20 3d 20 2e | tape_|file = .|
|00003260| 66 61 6c 73 65 2e 0a 20 | 20 20 20 20 20 65 6e 64 |false.. | end|
|00003270| 20 69 66 0a 0a 63 20 70 | 31 20 2d 2d 20 74 61 70 | if..c p|1 -- tap|
|00003280| 65 20 64 72 69 76 65 20 | 6e 61 6d 65 0a 20 20 20 |e drive |name. |
|00003290| 20 20 20 73 74 61 74 20 | 3d 20 63 6c 69 24 67 65 | stat |= cli$ge|
|000032a0| 74 5f 76 61 6c 75 65 28 | 20 27 74 61 70 65 27 2c |t_value(| 'tape',|
|000032b0| 20 66 6e 61 6d 65 2c 20 | 66 6c 65 6e 20 29 0a 20 | fname, |flen ). |
|000032c0| 20 20 20 20 20 69 66 20 | 28 20 2e 6e 6f 74 2e 20 | if |( .not. |
|000032d0| 73 74 61 74 20 29 20 67 | 6f 74 6f 20 39 30 30 0a |stat ) g|oto 900.|
|000032e0| 20 20 20 20 20 20 63 61 | 6c 6c 20 6f 70 65 6e 5f | ca|ll open_|
|000032f0| 74 61 70 65 28 20 66 6e | 61 6d 65 28 20 3a 66 6c |tape( fn|ame( :fl|
|00003300| 65 6e 20 29 29 0a 0a 63 | 20 70 32 20 2d 2d 20 66 |en ))..c| p2 -- f|
|00003310| 69 6c 65 73 20 74 6f 20 | 65 78 74 72 61 63 74 2f |iles to |extract/|
|00003320| 6c 69 73 74 2f 77 68 61 | 74 65 76 65 72 2e 20 20 |list/wha|tever. |
|00003330| 4e 4f 54 20 49 4d 50 4c | 45 4d 45 4e 54 45 44 0a |NOT IMPL|EMENTED.|
|00003340| 63 20 20 20 20 20 66 69 | 6c 65 73 20 3d 20 30 0a |c fi|les = 0.|
|00003350| 63 20 20 20 20 20 73 74 | 61 74 20 3d 20 63 6c 69 |c st|at = cli|
|00003360| 24 67 65 74 5f 76 61 6c | 75 65 28 20 27 6d 61 74 |$get_val|ue( 'mat|
|00003370| 63 68 27 2c 20 66 6e 61 | 6d 65 2c 20 66 6c 65 6e |ch', fna|me, flen|
|00003380| 20 29 0a 63 20 20 20 20 | 20 64 6f 20 77 68 69 6c | ).c | do whil|
|00003390| 65 20 28 20 2e 6e 6f 74 | 2e 20 61 62 73 65 6e 74 |e ( .not|. absent|
|000033a0| 28 20 73 74 61 74 20 29 | 29 0a 63 20 20 20 20 20 |( stat )|).c |
|000033b0| 20 20 20 69 66 20 28 20 | 2e 6e 6f 74 2e 20 73 74 | if ( |.not. st|
|000033c0| 61 74 20 29 20 67 6f 74 | 6f 20 39 30 30 0a 63 20 |at ) got|o 900.c |
|000033d0| 20 20 20 20 20 20 20 74 | 79 70 65 20 2a 2c 20 27 | t|ype *, '|
|000033e0| 46 69 6c 65 20 73 65 6c | 65 63 74 6f 72 3a 20 27 |File sel|ector: '|
|000033f0| 2c 20 66 6e 61 6d 65 28 | 20 3a 66 6c 65 6e 20 29 |, fname(| :flen )|
|00003400| 0a 63 20 20 20 20 20 20 | 20 20 66 69 6c 65 73 20 |.c | files |
|00003410| 3d 20 66 69 6c 65 73 20 | 2b 20 31 0a 63 20 20 20 |= files |+ 1.c |
|00003420| 20 20 20 20 20 73 74 61 | 74 20 3d 20 63 6c 69 24 | sta|t = cli$|
|00003430| 67 65 74 5f 76 61 6c 75 | 65 28 20 27 6d 61 74 63 |get_valu|e( 'matc|
|00003440| 68 27 2c 20 66 6e 61 6d | 65 2c 20 66 6c 65 6e 20 |h', fnam|e, flen |
|00003450| 29 0a 63 20 20 20 20 20 | 65 6e 64 20 64 6f 0a 0a |).c |end do..|
|00003460| 63 20 65 78 74 72 61 63 | 74 20 2d 2d 20 63 6f 70 |c extrac|t -- cop|
|00003470| 79 20 66 69 6c 65 73 20 | 74 6f 20 64 69 73 6b 0a |y files |to disk.|
|00003480| 20 20 20 20 20 20 73 74 | 61 74 20 3d 20 63 6c 69 | st|at = cli|
|00003490| 24 70 72 65 73 65 6e 74 | 28 20 27 65 78 74 72 61 |$present|( 'extra|
|000034a0| 63 74 27 20 29 0a 20 20 | 20 20 20 20 69 66 20 28 |ct' ). | if (|
|000034b0| 20 61 62 73 65 6e 74 28 | 20 73 74 61 74 20 29 29 | absent(| stat ))|
|000034c0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 65 | then. | e|
|000034d0| 78 74 72 61 63 74 69 6e | 67 20 3d 20 2e 66 61 6c |xtractin|g = .fal|
|000034e0| 73 65 2e 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |se.. | else i|
|000034f0| 66 20 28 20 2e 6e 6f 74 | 2e 20 73 74 61 74 20 29 |f ( .not|. stat )|
|00003500| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 67 | then. | g|
|00003510| 6f 74 6f 20 39 30 30 0a | 20 20 20 20 20 20 65 6c |oto 900.| el|
|00003520| 73 65 0a 20 20 20 20 20 | 20 20 20 65 78 74 72 61 |se. | extra|
|00003530| 63 74 69 6e 67 20 3d 20 | 2e 74 72 75 65 2e 0a 20 |cting = |.true.. |
|00003540| 20 20 20 20 20 65 6e 64 | 20 69 66 0a 0a 63 20 62 | end| if..c b|
|00003550| 69 6e 61 72 79 20 2d 2d | 20 63 6f 70 79 20 74 6f |inary --| copy to|
|00003560| 20 64 69 73 6b 20 69 6e | 20 62 6c 6f 63 6b 20 6d | disk in| block m|
|00003570| 6f 64 65 0a 20 20 20 20 | 20 20 73 74 61 74 20 3d |ode. | stat =|
|00003580| 20 63 6c 69 24 70 72 65 | 73 65 6e 74 28 20 27 62 | cli$pre|sent( 'b|
|00003590| 69 6e 61 72 79 27 20 29 | 0a 20 20 20 20 20 20 69 |inary' )|. i|
|000035a0| 66 20 28 20 61 62 73 65 | 6e 74 28 20 73 74 61 74 |f ( abse|nt( stat|
|000035b0| 20 29 29 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 | )) then|. |
|000035c0| 20 20 62 69 6e 61 72 79 | 20 3d 20 2e 66 61 6c 73 | binary| = .fals|
|000035d0| 65 2e 0a 20 20 20 20 20 | 20 65 6c 73 65 20 69 66 |e.. | else if|
|000035e0| 20 28 20 2e 6e 6f 74 2e | 20 73 74 61 74 20 29 20 | ( .not.| stat ) |
|000035f0| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 67 6f |then. | go|
|00003600| 74 6f 20 39 30 30 0a 20 | 20 20 20 20 20 65 6c 73 |to 900. | els|
|00003610| 65 0a 20 20 20 20 20 20 | 20 20 62 69 6e 61 72 79 |e. | binary|
|00003620| 20 3d 20 2e 74 72 75 65 | 2e 0a 20 20 20 20 20 20 | = .true|.. |
|00003630| 65 6e 64 20 69 66 0a 0a | 63 20 69 6e 71 75 69 72 |end if..|c inquir|
|00003640| 65 20 2d 2d 20 61 73 6b | 20 77 68 61 74 20 74 6f |e -- ask| what to|
|00003650| 20 64 6f 20 74 6f 20 65 | 61 63 68 20 66 69 6c 65 | do to e|ach file|
|00003660| 0a 20 20 20 20 20 20 73 | 74 61 74 20 3d 20 63 6c |. s|tat = cl|
|00003670| 69 24 70 72 65 73 65 6e | 74 28 20 27 69 6e 71 75 |i$presen|t( 'inqu|
|00003680| 69 72 65 27 20 29 0a 20 | 20 20 20 20 20 69 66 20 |ire' ). | if |
|00003690| 28 20 61 62 73 65 6e 74 | 28 20 73 74 61 74 20 29 |( absent|( stat )|
|000036a0| 29 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |) then. | |
|000036b0| 69 6e 71 75 69 72 69 6e | 67 20 3d 20 2e 66 61 6c |inquirin|g = .fal|
|000036c0| 73 65 2e 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |se.. | else i|
|000036d0| 66 20 28 20 2e 6e 6f 74 | 2e 20 73 74 61 74 20 29 |f ( .not|. stat )|
|000036e0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 67 | then. | g|
|000036f0| 6f 74 6f 20 39 30 30 0a | 20 20 20 20 20 20 65 6c |oto 900.| el|
|00003700| 73 65 0a 20 20 20 20 20 | 20 20 20 69 6e 71 75 69 |se. | inqui|
|00003710| 72 69 6e 67 20 3d 20 2e | 74 72 75 65 2e 0a 20 20 |ring = .|true.. |
|00003720| 20 20 20 20 65 6e 64 20 | 69 66 0a 0a 63 20 73 65 | end |if..c se|
|00003730| 63 6f 6e 64 5f 63 68 61 | 6e 63 65 20 2d 2d 20 74 |cond_cha|nce -- t|
|00003740| 72 79 20 74 6f 20 72 65 | 63 6f 67 6e 69 7a 65 20 |ry to re|cognize |
|00003750| 62 69 6e 61 72 79 20 66 | 69 6c 65 73 20 61 6e 64 |binary f|iles and|
|00003760| 20 73 61 76 65 20 74 68 | 65 6d 20 61 73 20 73 75 | save th|em as su|
|00003770| 63 68 0a 20 20 20 20 20 | 20 73 74 61 74 20 3d 20 |ch. | stat = |
|00003780| 63 6c 69 24 70 72 65 73 | 65 6e 74 28 20 27 73 65 |cli$pres|ent( 'se|
|00003790| 63 6f 6e 64 5f 63 68 61 | 6e 63 65 27 20 29 0a 20 |cond_cha|nce' ). |
|000037a0| 20 20 20 20 20 69 66 20 | 28 20 61 62 73 65 6e 74 | if |( absent|
|000037b0| 28 20 73 74 61 74 20 29 | 29 20 74 68 65 6e 0a 20 |( stat )|) then. |
|000037c0| 20 20 20 20 20 20 20 20 | 73 65 63 6f 6e 64 5f 63 | |second_c|
|000037d0| 68 61 6e 63 65 20 3d 20 | 2e 66 61 6c 73 65 2e 0a |hance = |.false..|
|000037e0| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 20 | el|se if ( |
|000037f0| 2e 6e 6f 74 2e 20 73 74 | 61 74 20 29 20 74 68 65 |.not. st|at ) the|
|00003800| 6e 0a 20 20 20 20 20 20 | 20 20 20 67 6f 74 6f 20 |n. | goto |
|00003810| 39 30 30 0a 20 20 20 20 | 20 20 65 6c 73 65 0a 20 |900. | else. |
|00003820| 20 20 20 20 20 20 20 73 | 65 63 6f 6e 64 5f 63 68 | s|econd_ch|
|00003830| 61 6e 63 65 20 3d 20 2e | 74 72 75 65 2e 0a 20 20 |ance = .|true.. |
|00003840| 20 20 20 20 65 6e 64 20 | 69 66 0a 0a 63 20 6c 69 | end |if..c li|
|00003850| 73 74 20 2d 2d 20 6c 69 | 73 74 20 66 69 6c 65 73 |st -- li|st files|
|00003860| 20 6f 6e 20 74 61 70 65 | 0a 20 20 20 20 20 20 73 | on tape|. s|
|00003870| 74 61 74 20 3d 20 63 6c | 69 24 67 65 74 5f 76 61 |tat = cl|i$get_va|
|00003880| 6c 75 65 28 20 27 6c 69 | 73 74 27 2c 20 66 6e 61 |lue( 'li|st', fna|
|00003890| 6d 65 2c 20 66 6c 65 6e | 20 29 20 20 20 20 20 0a |me, flen| ) .|
|000038a0| 20 20 20 20 20 20 69 66 | 20 28 20 61 62 73 65 6e | if| ( absen|
|000038b0| 74 28 20 73 74 61 74 20 | 29 29 20 74 68 65 6e 0a |t( stat |)) then.|
|000038c0| 20 20 20 20 20 20 20 20 | 20 6c 69 73 74 69 6e 67 | | listing|
|000038d0| 20 3d 20 2e 66 61 6c 73 | 65 2e 0a 20 20 20 20 20 | = .fals|e.. |
|000038e0| 20 65 6c 73 65 20 69 66 | 20 28 20 2e 6e 6f 74 2e | else if| ( .not.|
|000038f0| 20 73 74 61 74 20 29 20 | 74 68 65 6e 0a 20 20 20 | stat ) |then. |
|00003900| 20 20 20 20 20 20 67 6f | 74 6f 20 39 30 30 0a 20 | go|to 900. |
|00003910| 20 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 | els|e. |
|00003920| 20 20 20 6f 70 65 6e 28 | 20 6c 69 73 74 75 6e 69 | open(| listuni|
|00003930| 74 2c 20 65 72 72 3d 39 | 32 30 2c 20 6e 61 6d 65 |t, err=9|20, name|
|00003940| 3d 66 6e 61 6d 65 28 20 | 3a 66 6c 65 6e 20 29 2c |=fname( |:flen ),|
|00003950| 20 74 79 70 65 3d 27 6e | 65 77 27 2c 0a 20 20 20 | type='n|ew',. |
|00003960| 20 20 2d 20 20 20 20 20 | 20 20 64 65 66 61 75 6c | - | defaul|
|00003970| 74 66 69 6c 65 3d 27 74 | 61 72 2e 6c 69 73 27 2c |tfile='t|ar.lis',|
|00003980| 20 63 61 72 72 69 61 67 | 65 63 6f 6e 74 72 6f 6c | carriag|econtrol|
|00003990| 3d 27 6c 69 73 74 27 20 | 29 0a 20 20 20 20 20 20 |='list' |). |
|000039a0| 20 20 20 6c 69 73 74 69 | 6e 67 20 3d 20 2e 74 72 | listi|ng = .tr|
|000039b0| 75 65 2e 0a 20 20 20 20 | 20 20 65 6e 64 20 69 66 |ue.. | end if|
|000039c0| 0a 0a 63 20 76 65 72 62 | 6f 73 65 20 2d 2d 20 6d |..c verb|ose -- m|
|000039d0| 61 6b 65 20 61 20 76 65 | 72 62 6f 73 65 20 6c 69 |ake a ve|rbose li|
|000039e0| 73 74 0a 20 20 20 20 20 | 20 73 74 61 74 20 3d 20 |st. | stat = |
|000039f0| 63 6c 69 24 70 72 65 73 | 65 6e 74 28 20 27 76 65 |cli$pres|ent( 've|
|00003a00| 72 62 6f 73 65 27 20 29 | 0a 20 20 20 20 20 20 69 |rbose' )|. i|
|00003a10| 66 20 28 20 61 62 73 65 | 6e 74 28 20 73 74 61 74 |f ( abse|nt( stat|
|00003a20| 20 29 29 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 | )) then|. |
|00003a30| 20 20 76 65 72 62 6f 73 | 65 20 3d 20 2e 66 61 6c | verbos|e = .fal|
|00003a40| 73 65 2e 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 |se.. | else i|
|00003a50| 66 20 28 20 2e 6e 6f 74 | 2e 20 73 74 61 74 20 29 |f ( .not|. stat )|
|00003a60| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 67 | then. | g|
|00003a70| 6f 74 6f 20 39 30 30 0a | 20 20 20 20 20 20 65 6c |oto 900.| el|
|00003a80| 73 65 0a 20 20 20 20 20 | 20 20 20 76 65 72 62 6f |se. | verbo|
|00003a90| 73 65 20 3d 20 2e 74 72 | 75 65 2e 0a 20 20 20 20 |se = .tr|ue.. |
|00003aa0| 20 20 65 6e 64 20 69 66 | 0a 0a 63 20 66 6c 61 74 | end if|..c flat|
|00003ab0| 74 65 6e 20 2d 2d 20 65 | 78 74 72 61 63 74 20 61 |ten -- e|xtract a|
|00003ac0| 6c 6c 20 66 69 6c 65 73 | 20 74 6f 20 74 68 65 20 |ll files| to the |
|00003ad0| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00003ae0| 79 0a 20 20 20 20 20 20 | 73 74 61 74 20 3d 20 63 |y. |stat = c|
|00003af0| 6c 69 24 70 72 65 73 65 | 6e 74 28 20 27 66 6c 61 |li$prese|nt( 'fla|
|00003b00| 74 74 65 6e 27 20 29 0a | 20 20 20 20 20 20 69 66 |tten' ).| if|
|00003b10| 20 28 20 61 62 73 65 6e | 74 28 20 73 74 61 74 20 | ( absen|t( stat |
|00003b20| 29 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |)) then.| |
|00003b30| 20 66 6c 61 74 74 65 6e | 20 3d 20 2e 66 61 6c 73 | flatten| = .fals|
|00003b40| 65 2e 0a 20 20 20 20 20 | 20 65 6c 73 65 20 69 66 |e.. | else if|
|00003b50| 20 28 20 2e 6e 6f 74 2e | 20 73 74 61 74 20 29 20 | ( .not.| stat ) |
|00003b60| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 67 6f |then. | go|
|00003b70| 74 6f 20 39 30 30 0a 20 | 20 20 20 20 20 65 6c 73 |to 900. | els|
|00003b80| 65 0a 20 20 20 20 20 20 | 20 20 66 6c 61 74 74 65 |e. | flatte|
|00003b90| 6e 20 3d 20 2e 74 72 75 | 65 2e 0a 20 20 20 20 20 |n = .tru|e.. |
|00003ba0| 20 65 6e 64 20 69 66 0a | 0a 63 20 6e 61 6d 65 73 | end if.|.c names|
|00003bb0| 20 2d 2d 20 6d 61 6b 65 | 20 61 20 6c 69 73 74 20 | -- make| a list |
|00003bc0| 6f 66 20 77 68 61 74 20 | 75 6e 69 78 20 66 69 6c |of what |unix fil|
|00003bd0| 65 6e 61 6d 65 73 20 6d | 61 70 70 65 64 20 74 6f |enames m|apped to|
|00003be0| 20 77 68 61 74 20 56 4d | 53 20 66 69 6c 65 6e 61 | what VM|S filena|
|00003bf0| 6d 65 73 0a 20 20 20 20 | 20 20 73 74 61 74 20 3d |mes. | stat =|
|00003c00| 20 63 6c 69 24 67 65 74 | 5f 76 61 6c 75 65 28 20 | cli$get|_value( |
|00003c10| 27 6e 61 6d 65 73 27 2c | 20 66 6e 61 6d 65 2c 20 |'names',| fname, |
|00003c20| 66 6c 65 6e 20 29 20 20 | 20 20 20 0a 20 20 20 20 |flen ) | . |
|00003c30| 20 20 69 66 20 28 20 61 | 62 73 65 6e 74 28 20 73 | if ( a|bsent( s|
|00003c40| 74 61 74 20 29 29 20 74 | 68 65 6e 0a 20 20 20 20 |tat )) t|hen. |
|00003c50| 20 20 20 20 20 6e 61 6d | 69 6e 67 20 3d 20 2e 66 | nam|ing = .f|
|00003c60| 61 6c 73 65 2e 0a 20 20 | 20 20 20 20 65 6c 73 65 |alse.. | else|
|00003c70| 20 69 66 20 28 20 2e 6e | 6f 74 2e 20 73 74 61 74 | if ( .n|ot. stat|
|00003c80| 20 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 | ) then.| |
|00003c90| 20 67 6f 74 6f 20 39 30 | 30 0a 20 20 20 20 20 20 | goto 90|0. |
|00003ca0| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 20 6f 70 |else. | op|
|00003cb0| 65 6e 28 20 6e 61 6d 65 | 75 6e 69 74 2c 20 65 72 |en( name|unit, er|
|00003cc0| 72 3d 39 33 30 2c 20 6e | 61 6d 65 3d 66 6e 61 6d |r=930, n|ame=fnam|
|00003cd0| 65 28 20 3a 66 6c 65 6e | 20 29 2c 20 74 79 70 65 |e( :flen| ), type|
|00003ce0| 3d 27 6e 65 77 27 2c 0a | 20 20 20 20 20 2d 20 20 |='new',.| - |
|00003cf0| 20 20 20 20 20 64 65 66 | 61 75 6c 74 66 69 6c 65 | def|aultfile|
|00003d00| 3d 27 74 61 72 2e 6e 61 | 6d 27 2c 20 63 61 72 72 |='tar.na|m', carr|
|00003d10| 69 61 67 65 63 6f 6e 74 | 72 6f 6c 3d 27 6c 69 73 |iagecont|rol='lis|
|00003d20| 74 27 20 29 0a 20 20 20 | 20 20 20 20 20 20 6e 61 |t' ). | na|
|00003d30| 6d 69 6e 67 20 3d 20 2e | 74 72 75 65 2e 0a 20 20 |ming = .|true.. |
|00003d40| 20 20 20 20 65 6e 64 20 | 69 66 0a 0a 63 0a 63 20 | end |if..c.c |
|00003d50| 66 69 6c 65 20 6c 6f 6f | 70 3a 20 65 78 65 63 75 |file loo|p: execu|
|00003d60| 74 65 64 20 66 6f 72 20 | 65 61 63 68 20 66 69 6c |ted for |each fil|
|00003d70| 65 20 69 6e 20 74 68 65 | 20 61 72 63 68 69 76 65 |e in the| archive|
|00003d80| 0a 63 0a 20 20 20 20 20 | 20 64 6f 20 77 68 69 6c |.c. | do whil|
|00003d90| 65 20 28 20 2e 74 72 75 | 65 2e 20 29 0a 20 20 20 |e ( .tru|e. ). |
|00003da0| 31 30 20 20 20 20 75 73 | 69 6e 67 20 3d 20 30 0a |10 us|ing = 0.|
|00003db0| 20 20 20 20 20 20 20 20 | 20 75 73 69 6e 67 32 20 | | using2 |
|00003dc0| 3d 20 30 0a 20 20 20 20 | 20 20 20 20 20 63 61 6c |= 0. | cal|
|00003dd0| 6c 20 6e 65 78 74 5f 62 | 6c 6f 63 6b 0a 20 20 20 |l next_b|lock. |
|00003de0| 20 20 20 20 20 20 69 66 | 20 28 20 65 6f 66 20 2e | if| ( eof .|
|00003df0| 6f 72 2e 20 62 6c 6f 63 | 6b 28 20 63 75 72 72 20 |or. bloc|k( curr |
|00003e00| 29 20 28 31 3a 31 29 20 | 2e 65 71 2e 20 63 68 61 |) (1:1) |.eq. cha|
|00003e10| 72 28 20 30 20 29 29 20 | 67 6f 74 6f 20 38 39 39 |r( 0 )) |goto 899|
|00003e20| 0a 0a 63 20 73 74 61 72 | 74 20 70 61 72 73 69 6e |..c star|t parsin|
|00003e30| 67 20 6f 75 74 20 61 20 | 66 69 6c 65 20 65 6e 74 |g out a |file ent|
|00003e40| 72 79 20 2d 2d 20 70 61 | 72 73 65 20 74 68 65 20 |ry -- pa|rse the |
|00003e50| 68 65 61 64 65 72 0a 20 | 20 20 20 20 20 20 20 20 |header. | |
|00003e60| 72 65 61 64 28 20 62 6c | 6f 63 6b 28 20 63 75 72 |read( bl|ock( cur|
|00003e70| 72 20 29 2c 20 31 30 30 | 31 20 29 20 66 6e 61 6d |r ), 100|1 ) fnam|
|00003e80| 65 2c 20 70 72 6f 74 2c | 20 73 74 75 66 66 31 2c |e, prot,| stuff1,|
|00003e90| 20 73 74 75 66 66 32 2c | 0a 20 20 20 20 20 2d 20 | stuff2,|. - |
|00003ea0| 20 20 20 20 20 73 69 7a | 65 2c 20 74 69 6d 65 2c | siz|e, time,|
|00003eb0| 20 73 74 75 66 66 33 2c | 20 6c 69 6e 6b 0a 20 31 | stuff3,| link. 1|
|00003ec0| 30 30 31 20 20 20 20 66 | 6f 72 6d 61 74 28 20 61 |001 f|ormat( a|
|00003ed0| 31 30 30 2c 20 33 78 2c | 20 61 33 2c 20 32 78 2c |100, 3x,| a3, 2x,|
|00003ee0| 20 32 28 6f 36 2c 32 78 | 29 2c 20 32 28 6f 31 31 | 2(o6,2x|), 2(o11|
|00003ef0| 2c 31 78 29 2c 20 6f 36 | 2c 20 32 78 2c 20 61 31 |,1x), o6|, 2x, a1|
|00003f00| 20 29 0a 20 20 20 20 20 | 20 20 20 20 62 6c 6f 63 | ). | bloc|
|00003f10| 6b 73 20 3d 20 28 20 73 | 69 7a 65 20 2b 20 62 6c |ks = ( s|ize + bl|
|00003f20| 6f 63 6b 6c 65 6e 20 2d | 20 31 20 29 20 2f 20 62 |ocklen -| 1 ) / b|
|00003f30| 6c 6f 63 6b 6c 65 6e 0a | 20 20 20 20 20 20 20 20 |locklen.| |
|00003f40| 20 66 6c 65 6e 20 3d 20 | 69 6e 64 65 78 28 20 66 | flen = |index( f|
|00003f50| 6e 61 6d 65 2c 20 63 68 | 61 72 28 20 30 20 29 29 |name, ch|ar( 0 ))|
|00003f60| 20 2d 20 31 0a 20 20 20 | 20 20 20 20 20 20 69 66 | - 1. | if|
|00003f70| 20 28 20 66 6c 65 6e 20 | 2e 6c 74 2e 20 30 20 29 | ( flen |.lt. 0 )|
|00003f80| 20 66 6c 65 6e 20 3d 20 | 6c 65 6e 28 20 66 6e 61 | flen = |len( fna|
|00003f90| 6d 65 20 29 0a 0a 63 20 | 61 64 64 20 69 74 20 74 |me )..c |add it t|
|00003fa0| 6f 20 74 68 65 20 6c 69 | 73 74 0a 20 20 20 20 20 |o the li|st. |
|00003fb0| 20 20 20 20 69 66 20 28 | 20 6c 69 73 74 69 6e 67 | if (| listing|
|00003fc0| 20 2e 61 6e 64 2e 20 76 | 65 72 62 6f 73 65 20 29 | .and. v|erbose )|
|00003fd0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00003fe0| 20 20 63 61 6c 6c 20 63 | 76 74 5f 70 72 6f 74 28 | call c|vt_prot(|
|00003ff0| 20 70 72 6f 74 28 20 31 | 3a 31 20 29 2c 20 70 73 | prot( 1|:1 ), ps|
|00004000| 74 72 28 20 31 3a 33 20 | 29 29 0a 20 20 20 20 20 |tr( 1:3 |)). |
|00004010| 20 20 20 20 20 20 20 63 | 61 6c 6c 20 63 76 74 5f | c|all cvt_|
|00004020| 70 72 6f 74 28 20 70 72 | 6f 74 28 20 32 3a 32 20 |prot( pr|ot( 2:2 |
|00004030| 29 2c 20 70 73 74 72 28 | 20 34 3a 36 20 29 29 0a |), pstr(| 4:6 )).|
|00004040| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 6c 6c | | call|
|00004050| 20 63 76 74 5f 70 72 6f | 74 28 20 70 72 6f 74 28 | cvt_pro|t( prot(|
|00004060| 20 33 3a 33 20 29 2c 20 | 70 73 74 72 28 20 37 3a | 3:3 ), |pstr( 7:|
|00004070| 39 20 29 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |9 )). | |
|00004080| 20 77 72 69 74 65 28 20 | 6c 69 73 74 75 6e 69 74 | write( |listunit|
|00004090| 2c 20 32 30 30 31 20 29 | 20 70 73 74 72 2c 20 73 |, 2001 )| pstr, s|
|000040a0| 74 75 66 66 31 2c 20 73 | 74 75 66 66 32 2c 20 73 |tuff1, s|tuff2, s|
|000040b0| 69 7a 65 2c 0a 20 20 20 | 20 20 2d 20 20 20 20 20 |ize,. | - |
|000040c0| 20 20 20 20 20 74 69 6d | 65 2c 20 66 6e 61 6d 65 | tim|e, fname|
|000040d0| 28 20 3a 66 6c 65 6e 20 | 29 0a 20 32 30 30 31 20 |( :flen |). 2001 |
|000040e0| 20 20 20 20 20 20 66 6f | 72 6d 61 74 28 20 61 39 | fo|rmat( a9|
|000040f0| 2c 20 69 33 2c 20 27 2f | 27 2c 20 69 33 2c 20 69 |, i3, '/|', i3, i|
|00004100| 37 2c 20 69 31 31 2c 20 | 31 78 2c 20 61 20 29 0a |7, i11, |1x, a ).|
|00004110| 20 20 20 20 20 20 20 20 | 20 65 6c 73 65 20 69 66 | | else if|
|00004120| 20 28 20 6c 69 73 74 69 | 6e 67 20 29 20 74 68 65 | ( listi|ng ) the|
|00004130| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 77 72 |n. | wr|
|00004140| 69 74 65 28 20 6c 69 73 | 74 75 6e 69 74 2c 20 32 |ite( lis|tunit, 2|
|00004150| 30 30 32 20 29 20 66 6e | 61 6d 65 28 20 3a 66 6c |002 ) fn|ame( :fl|
|00004160| 65 6e 20 29 0a 20 32 30 | 30 32 20 20 20 20 20 20 |en ). 20|02 |
|00004170| 20 66 6f 72 6d 61 74 28 | 20 61 20 29 0a 20 20 20 | format(| a ). |
|00004180| 20 20 20 20 20 20 65 6e | 64 20 69 66 0a 0a 63 20 | en|d if..c |
|00004190| 69 67 6e 6f 72 65 20 6c | 69 6e 6b 73 0a 20 20 20 |ignore l|inks. |
|000041a0| 20 20 20 20 20 20 69 66 | 20 28 20 6c 69 6e 6b 20 | if| ( link |
|000041b0| 2e 65 71 2e 20 27 31 27 | 20 29 20 67 6f 74 6f 20 |.eq. '1'| ) goto |
|000041c0| 31 30 0a 0a 63 20 73 6b | 69 70 20 69 66 20 6e 6f |10..c sk|ip if no|
|000041d0| 74 20 65 78 74 72 61 63 | 74 69 6e 67 0a 20 20 20 |t extrac|ting. |
|000041e0| 20 20 20 20 20 20 69 66 | 20 28 20 2e 6e 6f 74 2e | if| ( .not.|
|000041f0| 20 65 78 74 72 61 63 74 | 69 6e 67 20 29 20 67 6f | extract|ing ) go|
|00004200| 74 6f 20 34 30 0a 0a 63 | 20 66 69 67 75 72 65 20 |to 40..c| figure |
|00004210| 6f 75 74 20 77 68 61 74 | 20 74 6f 20 64 6f 20 77 |out what| to do w|
|00004220| 69 74 68 20 74 68 65 20 | 66 69 6c 65 0a 20 20 20 |ith the |file. |
|00004230| 20 20 20 20 20 20 69 66 | 20 28 20 69 6e 71 75 69 | if| ( inqui|
|00004240| 72 69 6e 67 20 29 20 74 | 68 65 6e 0a 20 20 20 20 |ring ) t|hen. |
|00004250| 20 20 20 20 20 20 20 20 | 63 61 6c 6c 20 6c 69 62 | |call lib|
|00004260| 24 67 65 74 5f 69 6e 70 | 75 74 28 20 74 6d 70 2c |$get_inp|ut( tmp,|
|00004270| 20 66 6e 61 6d 65 28 20 | 3a 66 6c 65 6e 20 29 20 | fname( |:flen ) |
|00004280| 2f 2f 20 27 3a 20 5b 79 | 6e 62 74 71 5d 27 20 29 |// ': [y|nbtq]' )|
|00004290| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6f 20 |. | do |
|000042a0| 77 68 69 6c 65 20 28 20 | 69 6e 64 65 78 28 20 27 |while ( |index( '|
|000042b0| 20 79 59 6e 4e 62 42 74 | 54 71 51 27 2c 20 74 6d | yYnNbBt|TqQ', tm|
|000042c0| 70 20 29 20 2e 65 71 2e | 20 30 20 29 0a 20 20 20 |p ) .eq.| 0 ). |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 6c 6c | | call|
|000042e0| 20 6c 69 62 24 67 65 74 | 5f 69 6e 70 75 74 28 20 | lib$get|_input( |
|000042f0| 74 6d 70 2c 0a 20 20 20 | 20 20 2d 20 20 20 20 20 |tmp,. | - |
|00004300| 20 20 20 20 20 20 20 20 | 62 65 6c 6c 20 2f 2f 20 | |bell // |
|00004310| 66 6e 61 6d 65 28 20 3a | 66 6c 65 6e 20 29 20 2f |fname( :|flen ) /|
|00004320| 2f 20 27 3a 20 5b 79 6e | 62 74 71 5d 27 20 29 0a |/ ': [yn|btq]' ).|
|00004330| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6e 64 20 | | end |
|00004340| 64 6f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |do. | c|
|00004350| 61 6c 6c 20 73 74 72 24 | 75 70 63 61 73 65 28 20 |all str$|upcase( |
|00004360| 74 6d 70 2c 20 74 6d 70 | 20 29 0a 20 20 20 20 20 |tmp, tmp| ). |
|00004370| 20 20 20 20 20 20 20 69 | 66 20 28 20 74 6d 70 20 | i|f ( tmp |
|00004380| 2e 65 71 2e 20 27 51 27 | 20 29 20 67 6f 74 6f 20 |.eq. 'Q'| ) goto |
|00004390| 38 39 39 0a 20 20 20 20 | 20 20 20 20 20 65 6c 73 |899. | els|
|000043a0| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 74 6d |e. | tm|
|000043b0| 70 20 3d 20 27 59 27 0a | 20 20 20 20 20 20 20 20 |p = 'Y'.| |
|000043c0| 20 65 6e 64 20 69 66 0a | 0a 20 20 20 20 20 20 20 | end if.|. |
|000043d0| 20 20 69 66 20 28 20 74 | 6d 70 20 2e 65 71 2e 20 | if ( t|mp .eq. |
|000043e0| 27 59 27 20 2e 6f 72 2e | 20 74 6d 70 20 2e 65 71 |'Y' .or.| tmp .eq|
|000043f0| 2e 20 27 20 27 20 29 20 | 74 68 65 6e 0a 20 20 20 |. ' ' ) |then. |
|00004400| 20 20 20 20 20 20 20 20 | 20 74 6d 70 20 3d 20 27 | | tmp = '|
|00004410| 54 27 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |T'. | i|
|00004420| 66 20 28 20 62 69 6e 61 | 72 79 20 29 20 74 6d 70 |f ( bina|ry ) tmp|
|00004430| 20 3d 20 27 42 27 0a 20 | 20 20 20 20 20 20 20 20 | = 'B'. | |
|00004440| 65 6c 73 65 20 69 66 20 | 28 20 74 6d 70 20 2e 65 |else if |( tmp .e|
|00004450| 71 2e 20 27 4e 27 20 29 | 20 74 68 65 6e 0a 20 20 |q. 'N' )| then. |
|00004460| 20 20 20 20 20 20 20 20 | 20 20 67 6f 74 6f 20 34 | | goto 4|
|00004470| 30 0a 20 20 20 20 20 20 | 20 20 20 65 6e 64 20 69 |0. | end i|
|00004480| 66 0a 0a 63 20 70 61 72 | 73 65 20 66 69 6c 65 20 |f..c par|se file |
|00004490| 6e 61 6d 65 0a 20 20 20 | 20 20 20 20 20 20 63 61 |name. | ca|
|000044a0| 6c 6c 20 63 76 74 5f 64 | 69 72 5f 75 76 28 20 66 |ll cvt_d|ir_uv( f|
|000044b0| 6e 61 6d 65 28 20 3a 66 | 6c 65 6e 20 29 2c 20 6f |name( :f|len ), o|
|000044c0| 75 74 2c 20 6f 6c 65 6e | 20 29 0a 20 20 20 20 20 |ut, olen| ). |
|000044d0| 20 20 20 20 69 66 20 28 | 20 66 6c 61 74 74 65 6e | if (| flatten|
|000044e0| 20 29 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 | ) then.| |
|000044f0| 20 20 20 20 69 20 3d 20 | 69 6e 64 65 78 28 20 6f | i = |index( o|
|00004500| 75 74 28 20 3a 6f 6c 65 | 6e 20 29 2c 20 27 5d 27 |ut( :ole|n ), ']'|
|00004510| 20 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | ). | o|
|00004520| 75 74 20 3d 20 6f 75 74 | 28 20 69 2b 31 3a 6f 6c |ut = out|( i+1:ol|
|00004530| 65 6e 20 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |en ). | |
|00004540| 20 6f 6c 65 6e 20 3d 20 | 6f 6c 65 6e 20 2d 20 69 | olen = |olen - i|
|00004550| 0a 20 20 20 20 20 20 20 | 20 20 65 6e 64 20 69 66 |. | end if|
|00004560| 0a 20 20 20 20 20 20 20 | 20 20 69 66 20 28 20 74 |. | if ( t|
|00004570| 6d 70 20 2e 65 71 2e 20 | 27 42 27 20 29 20 67 6f |mp .eq. |'B' ) go|
|00004580| 74 6f 20 33 30 0a 0a 63 | 20 63 72 65 61 74 65 20 |to 30..c| create |
|00004590| 61 20 74 65 78 74 20 66 | 69 6c 65 0a 20 20 20 32 |a text f|ile. 2|
|000045a0| 30 20 20 20 20 6f 70 65 | 6e 28 20 6f 75 74 75 6e |0 ope|n( outun|
|000045b0| 69 74 2c 20 6e 61 6d 65 | 3d 6f 75 74 28 20 3a 6f |it, name|=out( :o|
|000045c0| 6c 65 6e 20 29 2c 20 74 | 79 70 65 3d 27 6e 65 77 |len ), t|ype='new|
|000045d0| 27 2c 20 72 65 63 6c 3d | 6d 61 78 72 65 63 6c 2c |', recl=|maxrecl,|
|000045e0| 0a 20 20 20 20 20 2d 20 | 20 20 20 20 20 20 64 65 |. - | de|
|000045f0| 66 61 75 6c 74 66 69 6c | 65 3d 27 2e 27 2c 20 63 |faultfil|e='.', c|
|00004600| 61 72 72 69 61 67 65 63 | 6f 6e 74 72 6f 6c 3d 27 |arriagec|ontrol='|
|00004610| 6c 69 73 74 27 2c 20 65 | 72 72 3d 33 38 20 29 0a |list', e|rr=38 ).|
|00004620| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 20 73 69 | | if ( si|
|00004630| 7a 65 20 2e 6c 65 2e 20 | 30 20 29 20 74 68 65 6e |ze .le. |0 ) then|
|00004640| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6c 6f |. | clo|
|00004650| 73 65 28 20 6f 75 74 75 | 6e 69 74 20 29 0a 20 20 |se( outu|nit ). |
|00004660| 20 20 20 20 20 20 20 20 | 20 20 67 6f 74 6f 20 39 | | goto 9|
|00004670| 39 0a 20 20 20 20 20 20 | 20 20 20 65 6e 64 20 69 |9. | end i|
|00004680| 66 0a 0a 63 20 63 6f 70 | 79 20 74 68 65 20 66 69 |f..c cop|y the fi|
|00004690| 6c 65 20 74 6f 20 64 69 | 73 6b 0a 20 20 20 20 20 |le to di|sk. |
|000046a0| 20 20 20 20 69 66 20 28 | 20 73 65 63 6f 6e 64 5f | if (| second_|
|000046b0| 63 68 61 6e 63 65 20 29 | 20 75 73 69 6e 67 32 20 |chance )| using2 |
|000046c0| 3d 20 63 75 72 72 0a 20 | 20 20 20 20 20 20 20 20 |= curr. | |
|000046d0| 63 61 6c 6c 20 6e 65 78 | 74 5f 62 6c 6f 63 6b 0a |call nex|t_block.|
|000046e0| 20 20 20 20 20 20 20 20 | 20 62 6c 6f 63 6b 73 20 | | blocks |
|000046f0| 3d 20 62 6c 6f 63 6b 73 | 20 2d 20 31 0a 20 20 20 |= blocks| - 1. |
|00004700| 20 20 20 20 20 20 73 74 | 61 72 74 20 3d 20 31 0a | st|art = 1.|
|00004710| 20 20 20 20 20 20 20 20 | 20 64 6f 20 77 68 69 6c | | do whil|
|00004720| 65 20 28 20 73 69 7a 65 | 20 2e 67 74 2e 20 30 20 |e ( size| .gt. 0 |
|00004730| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 75 73 |). | us|
|00004740| 69 6e 67 20 3d 20 63 75 | 72 72 0a 20 20 20 20 20 |ing = cu|rr. |
|00004750| 20 20 20 20 20 20 20 66 | 69 6e 69 73 68 20 3d 20 | f|inish = |
|00004760| 69 6e 64 65 78 28 20 62 | 6c 6f 63 6b 28 20 63 75 |index( b|lock( cu|
|00004770| 72 72 20 29 20 28 20 73 | 74 61 72 74 3a 20 29 2c |rr ) ( s|tart: ),|
|00004780| 20 6c 66 20 29 0a 20 20 | 20 20 20 20 20 20 20 20 | lf ). | |
|00004790| 20 20 64 6f 20 77 68 69 | 6c 65 20 28 20 66 69 6e | do whi|le ( fin|
|000047a0| 69 73 68 20 2e 65 71 2e | 20 30 20 2e 61 6e 64 2e |ish .eq.| 0 .and.|
|000047b0| 20 62 6c 6f 63 6b 73 20 | 2e 67 74 2e 20 30 20 2e | blocks |.gt. 0 .|
|000047c0| 61 6e 64 2e 0a 20 20 20 | 20 20 2d 20 20 20 20 20 |and.. | - |
|000047d0| 20 20 20 20 20 63 75 72 | 72 20 2d 20 75 73 69 6e | cur|r - usin|
|000047e0| 67 20 2b 20 31 20 2e 6c | 74 2e 20 72 65 63 62 6c |g + 1 .l|t. recbl|
|000047f0| 6f 63 6b 73 20 29 0a 20 | 20 20 20 20 20 20 20 20 |ocks ). | |
|00004800| 20 20 20 20 20 20 63 61 | 6c 6c 20 6e 65 78 74 5f | ca|ll next_|
|00004810| 62 6c 6f 63 6b 0a 20 20 | 20 20 20 20 20 20 20 20 |block. | |
|00004820| 20 20 20 20 20 62 6c 6f | 63 6b 73 20 3d 20 62 6c | blo|cks = bl|
|00004830| 6f 63 6b 73 20 2d 20 31 | 0a 20 20 20 20 20 20 20 |ocks - 1|. |
|00004840| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 65 6f 66 | |if ( eof|
|00004850| 20 29 20 67 6f 74 6f 20 | 39 39 30 0a 20 20 20 20 | ) goto |990. |
|00004860| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 6e 69 73 | | finis|
|00004870| 68 20 3d 20 69 6e 64 65 | 78 28 20 62 6c 6f 63 6b |h = inde|x( block|
|00004880| 28 20 63 75 72 72 20 29 | 2c 20 6c 66 20 29 0a 20 |( curr )|, lf ). |
|00004890| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 20 64 | | end d|
|000048a0| 6f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |o. | if|
|000048b0| 20 28 20 66 69 6e 69 73 | 68 20 2e 65 71 2e 20 30 | ( finis|h .eq. 0|
|000048c0| 20 29 20 66 69 6e 69 73 | 68 20 3d 20 32 20 2a 20 | ) finis|h = 2 * |
|000048d0| 62 6c 6f 63 6b 6c 65 6e | 20 2b 20 31 0a 20 20 20 |blocklen| + 1. |
|000048e0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 20 75 73 | | if ( us|
|000048f0| 69 6e 67 20 2e 65 71 2e | 20 63 75 72 72 20 29 20 |ing .eq.| curr ) |
|00004900| 66 69 6e 69 73 68 20 3d | 20 66 69 6e 69 73 68 20 |finish =| finish |
|00004910| 2b 20 73 74 61 72 74 20 | 2d 20 31 0a 20 20 20 20 |+ start |- 1. |
|00004920| 20 20 20 20 20 20 20 20 | 69 20 3d 20 73 74 61 72 | |i = star|
|00004930| 74 20 2b 20 62 6c 6f 63 | 6b 6c 65 6e 20 2a 20 28 |t + bloc|klen * (|
|00004940| 75 73 69 6e 67 2d 31 29 | 0a 20 20 20 20 20 20 20 |using-1)|. |
|00004950| 20 20 20 20 20 6a 20 3d | 20 66 69 6e 69 73 68 20 | j =| finish |
|00004960| 2b 20 62 6c 6f 63 6b 6c | 65 6e 20 2a 20 28 63 75 |+ blockl|en * (cu|
|00004970| 72 72 2d 31 29 0a 20 20 | 20 20 20 20 20 20 20 20 |rr-1). | |
|00004980| 20 20 73 74 61 72 74 20 | 3d 20 66 69 6e 69 73 68 | start |= finish|
|00004990| 20 2b 20 31 0a 20 20 20 | 20 20 20 20 20 20 20 20 | + 1. | |
|000049a0| 20 73 69 7a 65 20 3d 20 | 73 69 7a 65 20 2d 20 6a | size = |size - j|
|000049b0| 20 2b 20 69 20 2d 20 31 | 0a 20 20 20 20 20 20 20 | + i - 1|. |
|000049c0| 20 20 20 20 20 69 66 20 | 28 20 73 69 7a 65 20 2e | if |( size .|
|000049d0| 6c 74 2e 20 30 20 29 20 | 74 68 65 6e 0a 20 20 20 |lt. 0 ) |then. |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6a 20 3d 20 | | j = |
|000049f0| 6a 20 2b 20 73 69 7a 65 | 0a 20 20 20 20 20 20 20 |j + size|. |
|00004a00| 20 20 20 20 20 20 20 20 | 73 69 7a 65 20 3d 20 30 | |size = 0|
|00004a10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6e 64 |. | end|
|00004a20| 20 69 66 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | if. | |
|00004a30| 69 66 20 28 20 75 73 69 | 6e 67 32 20 2e 6e 65 2e |if ( usi|ng2 .ne.|
|00004a40| 20 30 20 2e 61 6e 64 2e | 20 6a 20 2d 20 69 20 2e | 0 .and.| j - i .|
|00004a50| 67 74 2e 20 6d 61 78 72 | 65 63 6c 20 29 20 74 68 |gt. maxr|ecl ) th|
|00004a60| 65 6e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |en. | |
|00004a70| 20 20 74 79 70 65 20 2a | 2c 20 27 47 69 76 69 6e | type *|, 'Givin|
|00004a80| 67 20 27 2c 20 66 6e 61 | 6d 65 28 20 3a 66 6c 65 |g ', fna|me( :fle|
|00004a90| 6e 20 29 2c 20 27 20 61 | 20 73 65 63 6f 6e 64 20 |n ), ' a| second |
|00004aa0| 63 68 61 6e 63 65 2e 2e | 2e 27 0a 20 20 20 20 20 |chance..|.'. |
|00004ab0| 20 20 20 20 20 20 20 20 | 20 20 62 6c 6f 63 6b 73 | | blocks|
|00004ac0| 20 3d 20 62 6c 6f 63 6b | 73 20 2b 20 63 75 72 72 | = block|s + curr|
|00004ad0| 20 2d 20 75 73 69 6e 67 | 32 0a 20 20 20 20 20 20 | - using|2. |
|00004ae0| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 20 3d 20 | | curr = |
|00004af0| 75 73 69 6e 67 32 0a 20 | 20 20 20 20 20 20 20 20 |using2. | |
|00004b00| 20 20 20 20 20 20 75 73 | 69 6e 67 20 3d 20 30 0a | us|ing = 0.|
|00004b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 75 | | u|
|00004b20| 73 69 6e 67 32 20 3d 20 | 30 0a 20 20 20 20 20 20 |sing2 = |0. |
|00004b30| 20 20 20 20 20 20 20 20 | 20 63 6c 6f 73 65 28 20 | | close( |
|00004b40| 6f 75 74 75 6e 69 74 2c | 20 64 69 73 70 6f 73 65 |outunit,| dispose|
|00004b50| 3d 27 64 65 6c 65 74 65 | 27 20 29 0a 20 20 20 20 |='delete|' ). |
|00004b60| 20 20 20 20 20 20 20 20 | 20 20 20 67 6f 74 6f 20 | | goto |
|00004b70| 33 30 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |30. | e|
|00004b80| 6e 64 20 69 66 0a 20 20 | 20 20 20 20 20 20 20 20 |nd if. | |
|00004b90| 20 20 77 72 69 74 65 28 | 20 6f 75 74 75 6e 69 74 | write(| outunit|
|00004ba0| 2c 20 32 30 30 35 2c 20 | 65 72 72 3d 33 39 2c 20 |, 2005, |err=39, |
|00004bb0| 69 6f 73 74 61 74 3d 73 | 74 61 74 20 29 0a 20 20 |iostat=s|tat ). |
|00004bc0| 20 20 20 2d 20 20 20 20 | 20 20 20 20 20 20 62 75 | - | bu|
|00004bd0| 66 66 65 72 28 20 69 20 | 3a 20 6a 2d 31 20 29 0a |ffer( i |: j-1 ).|
|00004be0| 32 30 30 35 20 20 20 20 | 20 20 20 20 66 6f 72 6d |2005 | form|
|00004bf0| 61 74 28 20 61 20 29 0a | 20 20 20 20 20 20 20 20 |at( a ).| |
|00004c00| 20 20 20 20 69 66 20 28 | 20 63 75 72 72 20 2d 20 | if (| curr - |
|00004c10| 75 73 69 6e 67 32 20 2e | 67 65 2e 20 73 61 76 65 |using2 .|ge. save|
|00004c20| 62 6c 6f 63 6b 73 20 29 | 20 75 73 69 6e 67 32 20 |blocks )| using2 |
|00004c30| 3d 20 30 0a 20 20 20 20 | 20 20 20 20 20 65 6e 64 |= 0. | end|
|00004c40| 20 64 6f 0a 0a 20 20 20 | 20 20 20 20 20 20 63 6c | do.. | cl|
|00004c50| 6f 73 65 28 20 6f 75 74 | 75 6e 69 74 20 29 0a 20 |ose( out|unit ). |
|00004c60| 20 20 20 20 20 20 20 20 | 67 6f 74 6f 20 39 39 0a | |goto 99.|
|00004c70| 0a 63 20 63 72 65 61 74 | 65 20 61 20 62 69 6e 61 |.c creat|e a bina|
|00004c80| 72 79 20 66 69 6c 65 0a | 20 20 20 33 30 20 20 20 |ry file.| 30 |
|00004c90| 20 75 73 69 6e 67 20 3d | 20 30 0a 20 20 20 20 20 | using =| 0. |
|00004ca0| 20 20 20 20 75 73 69 6e | 67 32 20 3d 20 30 0a 20 | usin|g2 = 0. |
|00004cb0| 20 20 20 20 20 20 20 20 | 6f 70 65 6e 28 20 6f 75 | |open( ou|
|00004cc0| 74 75 6e 69 74 2c 20 6e | 61 6d 65 3d 6f 75 74 28 |tunit, n|ame=out(|
|00004cd0| 20 3a 6f 6c 65 6e 20 29 | 2c 20 74 79 70 65 3d 27 | :olen )|, type='|
|00004ce0| 6e 65 77 27 2c 0a 20 20 | 20 20 20 2d 20 20 20 20 |new',. | - |
|00004cf0| 20 20 20 72 65 63 6c 3d | 62 6c 6f 63 6b 6c 65 6e | recl=|blocklen|
|00004d00| 2c 20 72 65 63 6f 72 64 | 74 79 70 65 3d 27 66 69 |, record|type='fi|
|00004d10| 78 65 64 27 2c 20 64 65 | 66 61 75 6c 74 66 69 6c |xed', de|faultfil|
|00004d20| 65 3d 27 2e 27 2c 0a 20 | 20 20 20 20 2d 20 20 20 |e='.',. | - |
|00004d30| 20 20 20 20 63 61 72 72 | 69 61 67 65 63 6f 6e 74 | carr|iagecont|
|00004d40| 72 6f 6c 3d 27 6e 6f 6e | 65 27 2c 20 65 72 72 3d |rol='non|e', err=|
|00004d50| 33 39 20 29 0a 0a 20 20 | 20 20 20 20 20 20 20 64 |39 ).. | d|
|00004d60| 6f 20 77 68 69 6c 65 20 | 28 20 62 6c 6f 63 6b 73 |o while |( blocks|
|00004d70| 20 2e 67 74 2e 20 30 20 | 29 0a 20 20 20 20 20 20 | .gt. 0 |). |
|00004d80| 20 20 20 20 20 20 63 61 | 6c 6c 20 6e 65 78 74 5f | ca|ll next_|
|00004d90| 62 6c 6f 63 6b 0a 20 20 | 20 20 20 20 20 20 20 20 |block. | |
|00004da0| 20 20 62 6c 6f 63 6b 73 | 20 3d 20 62 6c 6f 63 6b | blocks| = block|
|00004db0| 73 20 2d 20 31 0a 20 20 | 20 20 20 20 20 20 20 20 |s - 1. | |
|00004dc0| 20 20 77 72 69 74 65 28 | 20 6f 75 74 75 6e 69 74 | write(| outunit|
|00004dd0| 2c 20 33 30 30 31 2c 20 | 65 72 72 3d 33 39 2c 20 |, 3001, |err=39, |
|00004de0| 69 6f 73 74 61 74 3d 73 | 74 61 74 20 29 20 62 6c |iostat=s|tat ) bl|
|00004df0| 6f 63 6b 28 20 63 75 72 | 72 20 29 0a 20 33 30 30 |ock( cur|r ). 300|
|00004e00| 31 20 20 20 20 20 20 20 | 66 6f 72 6d 61 74 28 20 |1 |format( |
|00004e10| 61 20 29 0a 20 20 20 20 | 20 20 20 20 20 65 6e 64 |a ). | end|
|00004e20| 20 64 6f 0a 20 20 20 20 | 20 20 20 20 20 63 6c 6f | do. | clo|
|00004e30| 73 65 28 20 6f 75 74 75 | 6e 69 74 20 29 0a 20 20 |se( outu|nit ). |
|00004e40| 20 20 20 20 20 20 20 67 | 6f 74 6f 20 39 39 0a 0a | g|oto 99..|
|00004e50| 63 20 67 6f 74 20 61 6e | 20 65 72 72 6f 72 20 63 |c got an| error c|
|00004e60| 72 65 61 74 69 6e 67 20 | 74 68 65 20 66 69 6c 65 |reating |the file|
|00004e70| 3a 20 73 6b 69 70 20 69 | 74 2e 0a 20 20 20 33 38 |: skip i|t.. 38|
|00004e80| 20 20 20 20 74 79 70 65 | 20 2a 2c 20 27 45 72 72 | type| *, 'Err|
|00004e90| 6f 72 20 63 72 65 61 74 | 69 6e 67 20 27 2c 20 6f |or creat|ing ', o|
|00004ea0| 75 74 28 20 3a 6f 6c 65 | 6e 20 29 2c 20 27 20 73 |ut( :ole|n ), ' s|
|00004eb0| 6b 69 70 70 69 6e 67 2e | 2e 2e 27 0a 20 20 20 20 |kipping.|..'. |
|00004ec0| 20 20 20 20 20 67 6f 74 | 6f 20 34 30 0a 0a 63 20 | got|o 40..c |
|00004ed0| 67 6f 74 20 61 6e 20 65 | 72 72 6f 72 20 77 72 69 |got an e|rror wri|
|00004ee0| 74 69 6e 67 20 74 68 65 | 20 66 69 6c 65 3a 20 73 |ting the| file: s|
|00004ef0| 6b 69 70 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 |kip the |rest of |
|00004f00| 69 74 2e 0a 20 20 20 33 | 39 20 20 20 20 74 79 70 |it.. 3|9 typ|
|00004f10| 65 20 2a 2c 20 27 45 72 | 72 6f 72 20 77 72 69 74 |e *, 'Er|ror writ|
|00004f20| 69 6e 67 20 27 2c 20 6f | 75 74 28 20 3a 6f 6c 65 |ing ', o|ut( :ole|
|00004f30| 6e 20 29 2c 20 27 20 73 | 6b 69 70 70 69 6e 67 2e |n ), ' s|kipping.|
|00004f40| 2e 2e 27 0a 20 20 20 20 | 20 20 20 20 20 63 6c 6f |..'. | clo|
|00004f50| 73 65 28 20 6f 75 74 75 | 6e 69 74 2c 20 64 69 73 |se( outu|nit, dis|
|00004f60| 70 6f 73 65 3d 27 64 65 | 6c 65 74 65 27 20 29 0a |pose='de|lete' ).|
|00004f70| 0a 63 20 73 6b 69 70 20 | 74 68 65 20 66 69 6c 65 |.c skip |the file|
|00004f80| 0a 20 20 20 34 30 20 20 | 20 20 75 73 69 6e 67 20 |. 40 | using |
|00004f90| 3d 20 30 0a 20 20 20 20 | 20 20 20 20 20 75 73 69 |= 0. | usi|
|00004fa0| 6e 67 32 20 3d 20 30 0a | 20 20 20 20 20 20 20 20 |ng2 = 0.| |
|00004fb0| 20 64 6f 20 69 20 3d 20 | 31 2c 20 62 6c 6f 63 6b | do i = |1, block|
|00004fc0| 73 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 |s. | ca|
|00004fd0| 6c 6c 20 6e 65 78 74 5f | 62 6c 6f 63 6b 0a 20 20 |ll next_|block. |
|00004fe0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 20 65 | | if ( e|
|00004ff0| 6f 66 20 29 20 67 6f 74 | 6f 20 39 39 30 0a 20 20 |of ) got|o 990. |
|00005000| 20 20 20 20 20 20 20 65 | 6e 64 20 64 6f 0a 20 20 | e|nd do. |
|00005010| 20 20 20 20 20 20 20 67 | 6f 74 6f 20 31 30 0a 0a | g|oto 10..|
|00005020| 63 20 73 75 63 63 65 73 | 73 66 75 6c 6c 79 20 63 |c succes|sfully c|
|00005030| 6f 70 69 65 64 20 66 69 | 6c 65 20 74 6f 20 64 69 |opied fi|le to di|
|00005040| 73 6b 3a 20 65 6e 74 65 | 72 20 69 74 20 69 6e 20 |sk: ente|r it in |
|00005050| 74 68 65 20 6e 61 6d 65 | 73 20 66 69 6c 65 0a 20 |the name|s file. |
|00005060| 20 20 39 39 20 20 20 20 | 69 66 20 28 20 6e 61 6d | 99 |if ( nam|
|00005070| 69 6e 67 20 29 20 77 72 | 69 74 65 28 20 6e 61 6d |ing ) wr|ite( nam|
|00005080| 65 75 6e 69 74 2c 20 32 | 30 30 30 20 29 20 6f 75 |eunit, 2|000 ) ou|
|00005090| 74 28 20 3a 6f 6c 65 6e | 20 29 2c 0a 20 20 20 20 |t( :olen| ),. |
|000050a0| 20 2d 20 20 20 20 20 20 | 20 66 6e 61 6d 65 28 20 | - | fname( |
|000050b0| 3a 66 6c 65 6e 20 29 0a | 20 32 30 30 30 20 20 20 |:flen ).| 2000 |
|000050c0| 20 66 6f 72 6d 61 74 28 | 20 61 2c 20 27 20 2d 3e | format(| a, ' ->|
|000050d0| 20 27 2c 20 61 20 29 0a | 0a 20 20 20 20 20 20 65 | ', a ).|. e|
|000050e0| 6e 64 20 64 6f 0a 0a 63 | 20 65 6e 64 20 6f 66 20 |nd do..c| end of |
|000050f0| 74 61 70 65 3a 20 63 6c | 6f 73 65 20 69 74 20 61 |tape: cl|ose it a|
|00005100| 6e 64 20 65 78 69 74 21 | 0a 20 20 38 39 39 20 63 |nd exit!|. 899 c|
|00005110| 6c 6f 73 65 28 20 69 6e | 75 6e 69 74 20 29 0a 20 |lose( in|unit ). |
|00005120| 20 20 20 20 20 63 61 6c | 6c 20 65 78 69 74 0a 0a | cal|l exit..|
|00005130| 63 0a 63 20 66 61 74 61 | 6c 20 65 72 72 6f 72 73 |c.c fata|l errors|
|00005140| 0a 63 0a 20 20 39 30 30 | 20 74 79 70 65 20 2a 2c |.c. 900| type *,|
|00005150| 20 27 45 72 72 6f 72 20 | 70 61 72 73 69 6e 67 20 | 'Error |parsing |
|00005160| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 27 0a 20 20 |command |line'. |
|00005170| 20 20 20 20 63 61 6c 6c | 20 65 78 69 74 0a 0a 20 | call| exit.. |
|00005180| 20 39 32 30 20 74 79 70 | 65 20 2a 2c 20 27 45 72 | 920 typ|e *, 'Er|
|00005190| 72 6f 72 20 6f 70 65 6e | 69 6e 67 20 6c 69 73 74 |ror open|ing list|
|000051a0| 69 6e 67 20 66 69 6c 65 | 2c 20 27 2c 20 66 6e 61 |ing file|, ', fna|
|000051b0| 6d 65 28 20 3a 66 6c 65 | 6e 20 29 0a 20 20 20 20 |me( :fle|n ). |
|000051c0| 20 20 63 61 6c 6c 20 65 | 78 69 74 0a 0a 20 20 39 | call e|xit.. 9|
|000051d0| 33 30 20 74 79 70 65 20 | 2a 2c 20 27 45 72 72 6f |30 type |*, 'Erro|
|000051e0| 72 20 6f 70 65 6e 69 6e | 67 20 6e 61 6d 65 73 20 |r openin|g names |
|000051f0| 66 69 6c 65 2c 20 27 2c | 20 66 6e 61 6d 65 28 20 |file, ',| fname( |
|00005200| 3a 66 6c 65 6e 20 29 0a | 20 20 20 20 20 20 63 61 |:flen ).| ca|
|00005210| 6c 6c 20 65 78 69 74 0a | 0a 20 20 39 39 30 20 74 |ll exit.|. 990 t|
|00005220| 79 70 65 20 2a 2c 20 27 | 50 72 65 6d 61 74 75 72 |ype *, '|Prematur|
|00005230| 65 20 65 6e 64 20 6f 66 | 20 74 61 70 65 20 77 68 |e end of| tape wh|
|00005240| 69 6c 65 20 72 65 61 64 | 69 6e 67 20 27 2c 20 66 |ile read|ing ', f|
|00005250| 6e 61 6d 65 28 20 3a 66 | 6c 65 6e 20 29 0a 20 20 |name( :f|len ). |
|00005260| 20 20 20 20 63 61 6c 6c | 20 65 78 69 74 0a 0a 20 | call| exit.. |
|00005270| 20 20 20 20 20 65 6e 64 | 0a 24 20 65 6f 64 0a 24 | end|.$ eod.$|
|00005280| 21 0a 24 20 77 72 69 74 | 65 20 73 79 73 24 6f 75 |!.$ writ|e sys$ou|
|00005290| 74 70 75 74 20 22 63 72 | 65 61 74 69 6e 67 20 54 |tput "cr|eating T|
|000052a0| 41 52 2e 48 4c 50 22 0a | 24 20 63 72 65 61 74 65 |AR.HLP".|$ create|
|000052b0| 20 54 41 52 2e 48 4c 50 | 0a 24 20 64 65 63 6b 0a | TAR.HLP|.$ deck.|
|000052c0| 31 20 54 41 52 0a 20 20 | 49 6e 76 6f 6b 65 73 20 |1 TAR. |Invokes |
|000052d0| 74 68 65 20 74 61 70 65 | 20 61 72 63 68 69 76 65 |the tape| archive|
|000052e0| 20 72 65 61 64 65 72 20 | 74 6f 20 72 65 61 64 20 | reader |to read |
|000052f0| 75 6e 69 78 2d 66 6f 72 | 6d 61 74 20 74 61 70 65 |unix-for|mat tape|
|00005300| 73 2e 0a 0a 20 20 46 6f | 72 6d 61 74 3a 0a 0a 20 |s... Fo|rmat:.. |
|00005310| 20 20 20 54 41 52 20 74 | 61 70 65 2d 6e 61 6d 65 | TAR t|ape-name|
|00005320| 5b 3a 5d 0a 32 20 50 61 | 72 61 6d 65 74 65 72 0a |[:].2 Pa|rameter.|
|00005330| 0a 20 74 61 70 65 2d 6e | 61 6d 65 5b 3a 5d 0a 0a |. tape-n|ame[:]..|
|00005340| 20 20 53 70 65 63 69 66 | 69 65 73 20 74 68 65 20 | Specif|ies the |
|00005350| 64 65 76 69 63 65 20 6e | 61 6d 65 20 6f 66 20 74 |device n|ame of t|
|00005360| 68 65 20 74 61 70 65 20 | 64 72 69 76 65 20 74 68 |he tape |drive th|
|00005370| 65 20 61 72 63 68 69 76 | 65 20 69 73 20 6d 6f 75 |e archiv|e is mou|
|00005380| 6e 74 65 64 20 6f 6e 2e | 0a 20 20 54 68 65 20 61 |nted on.|. The a|
|00005390| 72 63 68 69 76 65 20 6d | 75 73 74 20 62 65 20 6d |rchive m|ust be m|
|000053a0| 6f 75 6e 74 65 64 20 66 | 6f 72 65 69 67 6e 2e 0a |ounted f|oreign..|
|000053b0| 0a 20 20 49 66 20 74 68 | 65 20 2f 46 49 4c 45 20 |. If th|e /FILE |
|000053c0| 71 75 61 6c 69 66 69 65 | 72 20 69 73 20 73 70 65 |qualifie|r is spe|
|000053d0| 63 69 66 69 65 64 2c 20 | 74 68 69 73 20 70 61 72 |cified, |this par|
|000053e0| 61 6d 65 74 65 72 20 69 | 73 20 69 6e 74 65 72 70 |ameter i|s interp|
|000053f0| 72 65 74 65 64 20 61 73 | 0a 20 20 74 68 65 20 66 |reted as|. the f|
|00005400| 69 6c 65 20 6e 61 6d 65 | 20 66 6f 72 20 74 68 65 |ile name| for the|
|00005410| 20 61 72 63 68 69 76 65 | 2e 0a 32 20 43 6f 6d 6d | archive|..2 Comm|
|00005420| 61 6e 64 5f 51 75 61 6c | 69 66 69 65 72 73 0a 0a |and_Qual|ifiers..|
|00005430| 2f 42 49 4e 41 52 59 0a | 0a 20 20 53 70 65 63 69 |/BINARY.|. Speci|
|00005440| 66 69 65 73 20 74 68 61 | 74 20 74 68 65 20 66 69 |fies tha|t the fi|
|00005450| 6c 65 73 20 65 78 74 72 | 61 63 74 65 64 20 73 68 |les extr|acted sh|
|00005460| 6f 75 6c 64 20 62 65 20 | 70 75 74 20 69 6e 74 6f |ould be |put into|
|00005470| 20 66 69 78 65 64 2d 6c | 65 6e 67 74 68 2d 35 31 | fixed-l|ength-51|
|00005480| 32 2d 0a 20 20 62 79 74 | 65 2d 72 65 63 6f 72 64 |2-. byt|e-record|
|00005490| 20 66 69 6c 65 73 20 61 | 6e 64 20 74 68 61 74 20 | files a|nd that |
|000054a0| 6e 6f 20 69 6e 74 65 72 | 70 72 65 74 61 74 69 6f |no inter|pretatio|
|000054b0| 6e 20 73 68 6f 75 6c 64 | 20 62 65 20 70 72 65 66 |n should| be pref|
|000054c0| 6f 72 6d 65 64 20 6f 6e | 0a 20 20 74 68 65 20 63 |ormed on|. the c|
|000054d0| 6f 6e 74 65 6e 74 73 2e | 0a 0a 2f 45 58 54 52 41 |ontents.|../EXTRA|
|000054e0| 43 54 0a 0a 20 20 53 70 | 65 63 69 66 69 65 73 20 |CT.. Sp|ecifies |
|000054f0| 74 68 61 74 20 74 68 65 | 20 66 69 6c 65 73 20 69 |that the| files i|
|00005500| 6e 20 74 68 65 20 61 72 | 63 68 69 76 65 20 73 68 |n the ar|chive sh|
|00005510| 6f 75 6c 64 20 62 65 20 | 63 6f 70 69 65 64 20 69 |ould be |copied i|
|00005520| 6e 74 6f 20 74 68 65 0a | 20 20 64 69 72 65 63 74 |nto the.| direct|
|00005530| 6f 72 79 2c 20 6f 72 20 | 73 75 62 64 69 72 65 63 |ory, or |subdirec|
|00005540| 74 6f 72 69 65 73 20 28 | 64 65 70 65 6e 64 69 6e |tories (|dependin|
|00005550| 67 20 6f 6e 20 74 68 65 | 20 2f 46 4c 41 54 54 45 |g on the| /FLATTE|
|00005560| 4e 20 71 75 61 6c 69 66 | 69 65 72 29 2e 0a 0a 2f |N qualif|ier).../|
|00005570| 46 49 4c 45 0a 0a 20 20 | 53 70 65 63 69 66 69 65 |FILE.. |Specifie|
|00005580| 73 20 74 68 61 74 2c 20 | 69 6e 73 74 65 61 64 20 |s that, |instead |
|00005590| 6f 66 20 61 20 74 61 70 | 65 2c 20 74 68 65 20 61 |of a tap|e, the a|
|000055a0| 72 63 68 69 76 65 20 69 | 73 20 63 6f 6e 74 61 69 |rchive i|s contai|
|000055b0| 6e 65 64 20 69 6e 20 61 | 20 6e 6f 72 6d 61 6c 0a |ned in a| normal.|
|000055c0| 20 20 66 69 6c 65 2e 0a | 0a 2f 46 4c 41 54 54 45 | file..|./FLATTE|
|000055d0| 4e 20 28 44 29 0a 0a 20 | 20 53 70 65 63 69 66 69 |N (D).. | Specifi|
|000055e0| 65 73 20 74 68 61 74 20 | 66 69 6c 65 73 20 65 78 |es that |files ex|
|000055f0| 74 72 61 63 74 65 64 20 | 66 72 6f 6d 20 74 68 65 |tracted |from the|
|00005600| 20 61 72 63 68 69 76 65 | 20 73 68 6f 75 6c 64 20 | archive| should |
|00005610| 62 65 20 70 75 74 20 69 | 6e 20 74 68 65 0a 20 20 |be put i|n the. |
|00005620| 64 65 66 61 75 6c 74 20 | 64 69 72 65 63 74 6f 72 |default |director|
|00005630| 79 20 65 76 65 6e 20 77 | 68 65 6e 20 74 68 65 20 |y even w|hen the |
|00005640| 66 69 6c 65 73 20 77 6f | 75 6c 64 20 6e 6f 72 6d |files wo|uld norm|
|00005650| 61 6c 6c 79 20 62 65 20 | 70 75 74 20 69 6e 0a 20 |ally be |put in. |
|00005660| 20 73 75 62 64 69 72 65 | 63 74 6f 72 69 65 73 2e | subdire|ctories.|
|00005670| 0a 0a 20 20 54 68 69 73 | 20 71 75 61 6c 69 66 69 |.. This| qualifi|
|00005680| 65 72 20 69 73 20 6f 6e | 20 62 79 20 64 65 66 61 |er is on| by defa|
|00005690| 75 6c 74 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |ult beca|use the |
|000056a0| 70 72 6f 67 72 61 6d 20 | 69 73 20 69 6e 63 61 70 |program |is incap|
|000056b0| 61 62 6c 65 20 6f 66 0a | 20 20 63 72 65 61 74 69 |able of.| creati|
|000056c0| 6e 67 20 73 75 62 64 69 | 72 65 63 74 6f 72 69 65 |ng subdi|rectorie|
|000056d0| 73 20 74 6f 20 70 75 74 | 20 74 68 65 20 65 78 74 |s to put| the ext|
|000056e0| 72 61 63 74 65 64 20 66 | 69 6c 65 73 20 69 6e 2c |racted f|iles in,|
|000056f0| 20 73 6f 20 75 6e 6c 65 | 73 73 20 74 68 65 79 0a | so unle|ss they.|
|00005700| 20 20 65 78 69 73 74 20 | 61 6c 72 65 61 64 79 2c | exist |already,|
|00005710| 20 2f 4e 4f 46 4c 41 54 | 54 45 4e 20 69 6e 20 61 | /NOFLAT|TEN in a|
|00005720| 20 70 75 72 65 20 6c 6f | 73 73 2e 0a 0a 2f 49 4e | pure lo|ss.../IN|
|00005730| 51 55 49 52 45 0a 0a 20 | 20 54 65 6c 6c 73 20 74 |QUIRE.. | Tells t|
|00005740| 68 65 20 70 72 6f 67 72 | 61 6d 20 74 6f 20 61 73 |he progr|am to as|
|00005750| 6b 20 74 68 65 20 75 73 | 65 72 20 77 68 61 74 20 |k the us|er what |
|00005760| 74 6f 20 64 6f 20 77 69 | 74 68 20 65 61 63 68 20 |to do wi|th each |
|00005770| 66 69 6c 65 20 69 74 20 | 68 61 73 20 62 65 65 6e |file it |has been|
|00005780| 0a 20 20 74 6f 6c 64 20 | 74 6f 20 65 78 74 72 61 |. told |to extra|
|00005790| 63 74 2e 20 20 54 68 65 | 20 70 72 6f 67 72 61 6d |ct. The| program|
|000057a0| 20 70 72 6f 6d 70 74 73 | 20 77 69 74 68 20 74 68 | prompts| with th|
|000057b0| 65 20 66 69 6c 65 6e 61 | 6d 65 20 66 6f 6c 6c 6f |e filena|me follo|
|000057c0| 77 65 64 20 62 79 20 61 | 0a 20 20 6c 69 73 74 20 |wed by a|. list |
|000057d0| 6f 66 20 6f 70 74 69 6f | 6e 73 2e 20 20 54 68 65 |of optio|ns. The|
|000057e0| 20 6f 70 74 69 6f 6e 73 | 20 61 72 65 3a 0a 0a 20 | options| are:.. |
|000057f0| 20 20 20 20 79 20 2d 20 | 65 78 74 72 61 63 74 20 | y - |extract |
|00005800| 74 68 65 20 66 69 6c 65 | 20 6e 6f 72 6d 61 6c 6c |the file| normall|
|00005810| 79 0a 20 20 20 20 20 6e | 20 2d 20 73 6b 69 70 20 |y. n| - skip |
|00005820| 74 68 65 20 66 69 6c 65 | 0a 20 20 20 20 20 74 20 |the file|. t |
|00005830| 2d 20 65 78 74 72 61 63 | 74 20 74 68 65 20 66 69 |- extrac|t the fi|
|00005840| 6c 65 20 69 6e 20 74 65 | 78 74 20 28 6e 6f 74 20 |le in te|xt (not |
|00005850| 62 69 6e 61 72 79 29 20 | 6d 6f 64 65 0a 20 20 20 |binary) |mode. |
|00005860| 20 20 62 20 2d 20 65 78 | 74 72 61 63 74 20 74 68 | b - ex|tract th|
|00005870| 65 20 66 69 6c 65 20 69 | 6e 20 62 69 6e 61 72 79 |e file i|n binary|
|00005880| 20 6d 6f 64 65 0a 20 20 | 20 20 20 71 20 2d 20 65 | mode. | q - e|
|00005890| 78 69 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 0a |xit the |program.|
|000058a0| 0a 20 20 54 68 65 20 79 | 20 6f 70 74 69 6f 6e 20 |. The y| option |
|000058b0| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 20 |is equiv|alent t |
|000058c0| 6f 72 20 62 20 64 65 70 | 65 6e 64 69 6e 67 20 6f |or b dep|ending o|
|000058d0| 6e 20 77 68 65 74 68 65 | 72 20 74 68 65 20 2f 42 |n whethe|r the /B|
|000058e0| 49 4e 41 52 59 0a 20 20 | 71 75 61 6c 69 66 69 65 |INARY. |qualifie|
|000058f0| 72 20 77 61 73 20 67 69 | 76 65 6e 2e 0a 0a 2f 4c |r was gi|ven.../L|
|00005900| 49 53 54 0a 0a 20 2f 4c | 49 53 54 3d 66 69 6c 65 |IST.. /L|IST=file|
|00005910| 6e 61 6d 65 20 28 64 65 | 66 61 75 6c 74 20 3d 20 |name (de|fault = |
|00005920| 73 79 73 24 6f 75 74 70 | 75 74 3a 29 0a 0a 20 20 |sys$outp|ut:).. |
|00005930| 54 65 6c 6c 73 20 74 68 | 65 20 70 72 6f 67 72 61 |Tells th|e progra|
|00005940| 6d 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 6c 69 |m to cre|ate a li|
|00005950| 73 74 20 6f 66 20 61 6c | 6c 20 6f 66 20 74 68 65 |st of al|l of the|
|00005960| 20 66 69 6c 65 73 20 6f | 6e 20 74 68 65 20 74 61 | files o|n the ta|
|00005970| 70 65 2e 0a 20 20 49 66 | 20 74 68 65 20 2f 56 45 |pe.. If| the /VE|
|00005980| 52 42 4f 53 45 20 71 75 | 61 6c 69 66 69 65 72 20 |RBOSE qu|alifier |
|00005990| 69 73 20 61 6c 73 6f 20 | 73 70 65 63 69 66 69 65 |is also |specifie|
|000059a0| 64 2c 20 74 68 65 20 6c | 69 73 74 20 63 6f 6e 74 |d, the l|ist cont|
|000059b0| 61 69 6e 73 20 6d 6f 72 | 65 0a 20 20 74 68 61 6e |ains mor|e. than|
|000059c0| 20 6a 75 73 74 20 74 68 | 65 20 66 69 6c 65 20 6e | just th|e file n|
|000059d0| 61 6d 65 73 2e 0a 0a 2f | 4e 41 4d 45 53 0a 0a 20 |ames.../|NAMES.. |
|000059e0| 2f 4e 41 4d 45 53 3d 66 | 69 6c 65 6e 61 6d 65 20 |/NAMES=f|ilename |
|000059f0| 28 64 65 66 61 75 6c 74 | 20 3d 20 73 79 73 24 6f |(default| = sys$o|
|00005a00| 75 74 70 75 74 3a 29 0a | 0a 20 20 49 66 20 66 69 |utput:).|. If fi|
|00005a10| 6c 65 73 20 61 72 65 20 | 65 78 74 72 61 63 74 65 |les are |extracte|
|00005a20| 64 2c 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 63 |d, the p|rogram c|
|00005a30| 72 65 61 74 65 73 20 61 | 20 66 69 6c 65 20 67 69 |reates a| file gi|
|00005a40| 76 69 6e 67 20 74 68 65 | 20 6e 61 6d 65 73 0a 20 |ving the| names. |
|00005a50| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 73 20 6f 6e | of the |files on|
|00005a60| 20 74 68 65 20 74 61 70 | 65 20 61 6e 64 20 74 68 | the tap|e and th|
|00005a70| 65 20 56 4d 53 20 66 69 | 6c 65 6e 61 6d 65 73 20 |e VMS fi|lenames |
|00005a80| 74 68 65 79 20 77 65 72 | 65 20 6d 61 70 70 65 64 |they wer|e mapped|
|00005a90| 20 69 6e 74 6f 0a 20 20 | 77 68 65 6e 20 65 78 74 | into. |when ext|
|00005aa0| 72 61 63 74 65 64 2e 0a | 0a 2f 53 45 43 4f 4e 44 |racted..|./SECOND|
|00005ab0| 5f 43 48 41 4e 43 45 20 | 28 44 29 0a 0a 20 20 54 |_CHANCE |(D).. T|
|00005ac0| 68 69 73 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |his spec|ifies th|
|00005ad0| 61 74 20 69 66 20 61 20 | 66 69 6c 65 20 69 73 20 |at if a |file is |
|00005ae0| 62 65 69 6e 67 20 65 78 | 74 72 61 63 74 65 64 20 |being ex|tracted |
|00005af0| 69 6e 20 74 65 78 74 20 | 6d 6f 64 65 2c 20 61 6e |in text |mode, an|
|00005b00| 64 0a 20 20 61 20 6c 69 | 6e 65 20 6c 6f 6e 67 65 |d. a li|ne longe|
|00005b10| 72 20 74 68 65 6e 20 35 | 31 32 20 62 79 74 65 73 |r then 5|12 bytes|
|00005b20| 20 69 6e 20 65 6e 63 6f | 75 6e 74 65 72 65 64 20 | in enco|untered |
|00005b30| 73 75 66 66 69 63 69 65 | 6e 74 6c 79 20 6e 65 61 |sufficie|ntly nea|
|00005b40| 72 20 74 68 65 0a 20 20 | 62 65 67 69 6e 6e 69 6e |r the. |beginnin|
|00005b50| 67 20 6f 66 20 74 68 65 | 20 66 69 6c 65 2c 20 69 |g of the| file, i|
|00005b60| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 72 65 2d 65 |t should| be re-e|
|00005b70| 78 74 72 61 63 74 65 64 | 20 69 6e 20 62 69 6e 61 |xtracted| in bina|
|00005b80| 72 79 20 6d 6f 64 65 2e | 0a 0a 20 20 49 66 20 6e |ry mode.|.. If n|
|00005b90| 65 67 61 74 65 64 2c 20 | 66 69 6c 65 73 20 77 69 |egated, |files wi|
|00005ba0| 74 68 20 6c 6f 6e 67 20 | 6c 69 6e 65 73 20 61 72 |th long |lines ar|
|00005bb0| 65 20 64 69 73 63 61 72 | 64 65 64 20 69 6e 20 74 |e discar|ded in t|
|00005bc0| 65 78 74 20 6d 6f 64 65 | 2e 0a 0a 2f 56 45 52 42 |ext mode|.../VERB|
|00005bd0| 4f 53 45 0a 0a 20 20 54 | 68 69 73 20 73 70 65 63 |OSE.. T|his spec|
|00005be0| 69 66 69 65 73 20 74 68 | 61 74 20 6c 69 73 74 73 |ifies th|at lists|
|00005bf0| 20 73 68 6f 75 6c 64 20 | 63 6f 6e 74 61 69 6e 20 | should |contain |
|00005c00| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00005c10| 20 74 68 61 6e 20 6a 75 | 73 74 0a 20 20 74 68 65 | than ju|st. the|
|00005c20| 20 66 69 6c 65 6e 61 6d | 65 2e 0a 0a 32 20 42 75 | filenam|e...2 Bu|
|00005c30| 67 73 0a 20 20 48 65 72 | 65 27 73 20 61 20 6c 69 |gs. Her|e's a li|
|00005c40| 73 74 20 6f 66 20 73 6f | 6d 65 20 6f 66 20 74 68 |st of so|me of th|
|00005c50| 65 20 6d 6f 72 65 20 6e | 6f 74 69 63 61 62 6c 65 |e more n|oticable|
|00005c60| 20 62 75 67 73 20 61 6e | 64 20 64 65 66 69 63 69 | bugs an|d defici|
|00005c70| 65 6e 63 69 65 73 3a 0a | 20 20 20 20 20 2d 20 49 |encies:.| - I|
|00005c80| 74 20 63 61 6e 27 74 20 | 77 72 69 74 65 20 74 61 |t can't |write ta|
|00005c90| 72 20 74 61 70 65 73 2e | 0a 20 20 20 20 20 2d 20 |r tapes.|. - |
|00005ca0| 49 74 20 63 61 6e 27 74 | 20 6f 70 65 72 61 74 65 |It can't| operate|
|00005cb0| 20 6f 6e 20 6f 6e 6c 79 | 20 73 6f 6d 65 20 6f 66 | on only| some of|
|00005cc0| 20 74 68 65 20 66 69 6c | 65 73 20 6f 6e 20 61 20 | the fil|es on a |
|00005cd0| 74 61 70 65 2e 0a 20 20 | 20 20 20 2d 20 56 65 72 |tape.. | - Ver|
|00005ce0| 62 6f 73 65 20 6c 69 73 | 74 69 6e 67 73 20 63 6f |bose lis|tings co|
|00005cf0| 6e 74 61 69 6e 20 74 68 | 65 20 64 61 74 65 20 69 |ntain th|e date i|
|00005d00| 6e 20 73 65 63 6f 6e 64 | 73 20 73 69 6e 63 65 20 |n second|s since |
|00005d10| 31 39 37 30 20 6f 72 20 | 73 6f 2c 0a 20 20 20 20 |1970 or |so,. |
|00005d20| 20 20 20 20 20 72 61 74 | 68 65 72 20 74 68 61 6e | rat|her than|
|00005d30| 20 61 6e 79 20 72 65 61 | 73 6f 6e 61 62 6c 65 20 | any rea|sonable |
|00005d40| 66 6f 72 6d 61 74 2e 0a | 20 20 20 20 20 2d 20 49 |format..| - I|
|00005d50| 74 20 63 61 6e 27 74 20 | 63 72 65 61 74 65 20 73 |t can't |create s|
|00005d60| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 20 74 6f |ubdirect|ories to|
|00005d70| 20 70 75 74 20 66 69 6c | 65 73 20 69 6e 2e 20 28 | put fil|es in. (|
|00005d80| 74 68 61 74 27 73 20 77 | 68 79 0a 20 20 20 20 20 |that's w|hy. |
|00005d90| 20 20 20 20 2f 46 4c 41 | 54 54 45 4e 20 69 73 20 | /FLA|TTEN is |
|00005da0| 74 68 65 20 64 65 66 61 | 75 6c 74 29 0a 20 20 20 |the defa|ult). |
|00005db0| 20 20 2d 20 45 72 72 6f | 72 20 72 65 63 6f 76 65 | - Erro|r recove|
|00005dc0| 72 79 20 61 6e 64 20 72 | 65 70 6f 72 74 69 6e 67 |ry and r|eporting|
|00005dd0| 20 63 6f 75 6c 64 20 75 | 73 65 20 69 6d 70 72 6f | could u|se impro|
|00005de0| 76 65 6d 65 6e 74 2e 0a | 20 20 20 20 20 2d 20 70 |vement..| - p|
|00005df0| 72 6f 62 61 62 6c 79 20 | 6f 74 68 65 72 73 20 49 |robably |others I|
|00005e00| 20 63 61 6e 27 74 20 74 | 68 69 6e 6b 20 6f 66 20 | can't t|hink of |
|00005e10| 61 74 20 74 68 65 20 6d | 6f 6d 65 6e 74 2e 0a 0a |at the m|oment...|
|00005e20| 20 20 49 66 20 79 6f 75 | 20 64 69 73 63 6f 76 65 | If you| discove|
|00005e30| 72 20 6d 6f 72 65 20 62 | 75 67 73 2c 20 66 69 78 |r more b|ugs, fix|
|00005e40| 20 74 68 65 6d 2c 20 6f | 72 20 6a 75 73 74 20 68 | them, o|r just h|
|00005e50| 61 76 65 20 73 75 67 67 | 65 73 74 69 6f 6e 73 2c |ave sugg|estions,|
|00005e60| 20 6d 61 69 6c 0a 20 20 | 74 68 65 6d 20 74 6f 20 | mail. |them to |
|00005e70| 47 6f 72 64 6f 6e 20 44 | 61 76 69 73 73 6f 6e 20 |Gordon D|avisson |
|00005e80| 28 7b 69 68 6e 70 34 7c | 64 65 63 76 61 78 7d 21 |({ihnp4||decvax}!|
|00005e90| 75 77 2d 62 65 61 76 65 | 72 21 75 77 2d 6a 75 6e |uw-beave|r!uw-jun|
|00005ea0| 65 21 67 6f 72 64 6f 6e | 2c 0a 20 20 67 6f 72 64 |e!gordon|,. gord|
|00005eb0| 6f 6e 40 75 77 2d 6a 75 | 6e 65 2e 41 52 50 41 2c |on@uw-ju|ne.ARPA,|
|00005ec0| 20 6f 72 20 67 6f 72 64 | 6f 6e 40 75 77 61 70 68 | or gord|on@uwaph|
|00005ed0| 61 73 74 2e 42 49 54 4e | 45 54 29 2e 0a 24 20 65 |ast.BITN|ET)..$ e|
|00005ee0| 6f 64 0a 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |od..****|********|
|00005ef0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00005f30| 0a 46 72 6f 6d 3a 20 6c | 6c 6c 2d 6c 63 63 21 75 |.From: l|ll-lcc!u|
|00005f40| 63 64 61 76 69 73 21 76 | 65 67 61 21 63 63 72 64 |cdavis!v|ega!ccrd|
|00005f50| 61 76 65 20 28 4c 6f 72 | 64 20 4b 61 68 6c 65 73 |ave (Lor|d Kahles|
|00005f60| 73 29 0a 0a 49 20 72 65 | 63 65 69 76 65 64 20 74 |s)..I re|ceived t|
|00005f70| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 66 72 6f 6d |his prog|ram from|
|00005f80| 20 73 6f 6d 65 62 6f 64 | 79 2c 20 77 68 6f 20 72 | somebod|y, who r|
|00005f90| 65 63 65 69 76 65 64 20 | 74 68 69 73 20 70 72 6f |eceived |this pro|
|00005fa0| 67 72 61 6d 0a 66 72 6f | 6d 20 73 6f 6d 65 62 6f |gram.fro|m somebo|
|00005fb0| 64 79 2e 20 20 49 20 64 | 6f 6e 27 74 20 6b 6e 6f |dy. I d|on't kno|
|00005fc0| 77 20 69 66 20 69 74 20 | 77 6f 72 6b 73 20 62 65 |w if it |works be|
|00005fd0| 63 61 75 73 65 20 49 27 | 76 65 20 62 65 65 6e 20 |cause I'|ve been |
|00005fe0| 74 6f 20 62 75 73 79 0a | 74 6f 20 74 65 73 74 20 |to busy.|to test |
|00005ff0| 69 74 2e 20 20 4a 75 73 | 74 20 73 75 62 73 74 69 |it. Jus|t substi|
|00006000| 74 75 74 65 20 6f 75 74 | 20 74 68 65 20 58 40 58 |tute out| the X@X|
|00006010| 40 27 73 20 61 6e 64 20 | 67 6f 20 66 6f 72 20 69 |@'s and |go for i|
|00006020| 74 2e 20 54 65 6c 6c 0a | 6d 65 20 68 6f 77 20 69 |t. Tell.|me how i|
|00006030| 74 20 77 6f 72 6b 73 2e | 2e 2e 0a 58 40 58 40 46 |t works.|...X@X@F|
|00006040| 72 6f 6d 3a 09 41 4c 43 | 4f 52 3a 3a 43 43 52 44 |rom:.ALC|OR::CCRD|
|00006050| 41 4e 20 20 20 20 20 20 | 20 22 44 41 4e 20 47 4f |AN | "DAN GO|
|00006060| 4c 44 22 20 31 31 2d 41 | 55 47 2d 31 39 38 36 20 |LD" 11-A|UG-1986 |
|00006070| 31 30 3a 30 31 0a 58 40 | 58 40 54 6f 3a 09 43 43 |10:01.X@|X@To:.CC|
|00006080| 52 44 41 56 45 0a 58 40 | 58 40 53 75 62 6a 3a 09 |RDAVE.X@|X@Subj:.|
|00006090| 0a 58 40 58 40 0a 58 40 | 58 40 46 72 6f 6d 20 75 |.X@X@.X@|X@From u|
|000060a0| 63 62 76 61 78 21 73 64 | 63 73 76 61 78 2e 75 63 |cbvax!sd|csvax.uc|
|000060b0| 73 64 2e 65 64 75 21 67 | 72 36 36 40 73 64 63 63 |sd.edu!g|r66@sdcc|
|000060c0| 31 32 20 53 75 6e 20 41 | 75 67 20 31 30 20 31 33 |12 Sun A|ug 10 13|
|000060d0| 3a 34 31 3a 31 34 20 31 | 39 38 36 0a 58 40 58 40 |:41:14 1|986.X@X@|
|000060e0| 52 65 63 65 69 76 65 64 | 3a 20 62 79 20 64 65 6e |Received|: by den|
|000060f0| 65 62 2e 55 43 44 41 56 | 49 53 2e 45 44 55 20 28 |eb.UCDAV|IS.EDU (|
|00006100| 34 2e 31 32 2f 34 2e 37 | 29 0a 58 40 58 40 09 69 |4.12/4.7|).X@X@.i|
|00006110| 64 20 41 41 32 38 37 36 | 39 3b 20 53 75 6e 2c 20 |d AA2876|9; Sun, |
|00006120| 31 30 20 41 75 67 20 38 | 36 20 31 33 3a 34 30 3a |10 Aug 8|6 13:40:|
|00006130| 30 37 20 70 64 74 0a 58 | 40 58 40 46 72 6f 6d 3a |07 pdt.X|@X@From:|
|00006140| 20 75 63 62 76 61 78 21 | 73 64 63 73 76 61 78 2e | ucbvax!|sdcsvax.|
|00006150| 75 63 73 64 2e 65 64 75 | 21 67 72 36 36 40 73 64 |ucsd.edu|!gr66@sd|
|00006160| 63 63 31 32 0a 58 40 58 | 40 52 65 63 65 69 76 65 |cc12.X@X|@Receive|
|00006170| 64 3a 20 62 79 20 75 63 | 64 61 76 69 73 2e 55 43 |d: by uc|davis.UC|
|00006180| 44 41 56 49 53 2e 45 44 | 55 20 28 34 2e 31 32 2f |DAVIS.ED|U (4.12/|
|00006190| 34 2e 37 29 0a 58 40 58 | 40 09 69 64 20 41 41 32 |4.7).X@X|@.id AA2|
|000061a0| 34 33 31 35 3b 20 53 75 | 6e 2c 20 31 30 20 41 75 |4315; Su|n, 10 Au|
|000061b0| 67 20 38 36 20 31 33 3a | 34 31 3a 32 35 20 70 64 |g 86 13:|41:25 pd|
|000061c0| 74 0a 58 40 58 40 52 65 | 63 65 69 76 65 64 3a 20 |t.X@X@Re|ceived: |
|000061d0| 62 79 20 75 63 62 76 61 | 78 2e 42 65 72 6b 65 6c |by ucbva|x.Berkel|
|000061e0| 65 79 2e 45 44 55 20 28 | 35 2e 35 33 2f 31 2e 31 |ey.EDU (|5.53/1.1|
|000061f0| 34 29 0a 58 40 58 40 09 | 69 64 20 41 41 30 38 38 |4).X@X@.|id AA088|
|00006200| 30 34 3b 20 53 75 6e 2c | 20 31 30 20 41 75 67 20 |04; Sun,| 10 Aug |
|00006210| 38 36 20 31 33 3a 31 34 | 3a 33 35 20 50 44 54 0a |86 13:14|:35 PDT.|
|00006220| 58 40 58 40 52 65 63 65 | 69 76 65 64 3a 20 62 79 |X@X@Rece|ived: by|
|00006230| 20 73 64 63 73 76 61 78 | 2e 75 63 73 64 2e 65 64 | sdcsvax|.ucsd.ed|
|00006240| 75 20 28 35 2e 33 31 2f | 34 2e 34 32 29 0a 58 40 |u (5.31/|4.42).X@|
|00006250| 58 40 09 69 64 20 41 41 | 32 30 31 33 34 3b 20 53 |X@.id AA|20134; S|
|00006260| 75 6e 2c 20 31 30 20 41 | 75 67 20 38 36 20 31 33 |un, 10 A|ug 86 13|
|00006270| 3a 31 35 3a 30 35 20 50 | 44 54 20 68 6f 70 73 3d |:15:05 P|DT hops=|
|00006280| 30 0a 58 40 58 40 52 65 | 63 65 69 76 65 64 3a 20 |0.X@X@Re|ceived: |
|00006290| 62 79 20 73 64 63 63 31 | 32 2e 41 52 50 41 20 28 |by sdcc1|2.ARPA (|
|000062a0| 35 2e 35 2f 34 2e 34 31 | 29 0a 58 40 58 40 09 69 |5.5/4.41|).X@X@.i|
|000062b0| 64 20 41 41 31 37 37 31 | 38 3b 20 53 75 6e 2c 20 |d AA1771|8; Sun, |
|000062c0| 31 30 20 41 75 67 20 38 | 36 20 31 33 3a 31 34 3a |10 Aug 8|6 13:14:|
|000062d0| 34 33 20 50 44 54 0a 58 | 40 58 40 44 61 74 65 3a |43 PDT.X|@X@Date:|
|000062e0| 20 53 75 6e 2c 20 31 30 | 20 41 75 67 20 38 36 20 | Sun, 10| Aug 86 |
|000062f0| 31 33 3a 31 34 3a 34 33 | 20 50 44 54 0a 58 40 58 |13:14:43| PDT.X@X|
|00006300| 40 4d 65 73 73 61 67 65 | 2d 49 64 3a 20 3c 38 36 |@Message|-Id: <86|
|00006310| 30 38 31 30 32 30 31 34 | 2e 41 41 31 37 37 31 38 |08102014|.AA17718|
|00006320| 40 73 64 63 63 31 32 2e | 41 52 50 41 3e 0a 58 40 |@sdcc12.|ARPA>.X@|
|00006330| 58 40 54 6f 3a 20 75 63 | 64 61 76 69 73 21 64 65 |X@To: uc|davis!de|
|00006340| 6e 65 62 21 63 63 72 64 | 61 6e 0a 58 40 58 40 53 |neb!ccrd|an.X@X@S|
|00006350| 74 61 74 75 73 3a 20 52 | 0a 58 40 58 40 0a 58 40 |tatus: R|.X@X@.X@|
|00006360| 58 40 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X@------|--------|
|00006370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063a0| 2d 2d 2d 0a 58 40 58 40 | 0a 58 40 58 40 44 61 6e |---.X@X@|.X@X@Dan|
|000063b0| 20 47 6f 6c 64 3a 0a 58 | 40 58 40 0a 58 40 58 40 | Gold:.X|@X@.X@X@|
|000063c0| 20 20 20 48 65 72 65 20 | 61 72 65 20 74 68 65 20 | Here |are the |
|000063d0| 37 20 66 69 6c 65 73 20 | 49 20 72 65 63 65 69 76 |7 files |I receiv|
|000063e0| 65 64 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |ed in re|sponse t|
|000063f0| 6f 20 6d 79 20 74 61 72 | 20 72 65 61 64 2f 77 72 |o my tar| read/wr|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.